Skip to content

Re-enable hoogle in nix shell #5092

@paolino

Description

@paolino

Summary

Hoogle was temporarily disabled in nix/haskell.nix during the cardano-node 10.6.1 dependency bump due to a haskell.nix bug with typed-protocols sublibraries.

Problem

The typed-protocols-1.0.0.0 package has internal sublibraries (cborg, stateful, stateful-cborg) where the cborg sublibrary name shadows the external cborg hackage package. When haskell.nix tries to build typed-protocols:stateful-cborg, it generates invalid configure flags:

--dependency=cborg=cborg-0.2.10.0-...
--dependency=cborg=typed-protocols-1.0.0.0-...-cborg

This causes the build to fail with: Error: Dependency on unbuildable package cborg

Workaround Applied

Disabled hoogle in nix/haskell.nix:

  • Set withHoogle = false
  • Commented out hoogle from tools

Resolution Path

  1. Check if newer haskell.nix versions fix the sublibrary name collision issue
  2. Alternatively, wait for a typed-protocols release that renames internal sublibraries
  3. Once fixed, restore withHoogle = true and re-add hoogle to tools

Related

  • haskell.nix sublibrary handling
  • typed-protocols internal library structure

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions