You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The following shellHook will warn if the user accidentally ends up using a non-nix-shell haskell tools (such as that of ghcup). Perhaps haskell-flake can provide this as an opt-in module to import (like #160).
haskellProjects.default={config, ... }: {devShell={mkShellArgs.shellHook='' function samePath { [[ "$1" == "$2" ]] || ( echo "\n!!! WARNING: Found $1, but expected $2" ) } function inNixStore { [[ "$1" == $NIX_STORE/* ]] || ( echo "\n!!! WARNING: $1 is not in the Nix store" ) } inNixStore "$(which ghc)" # samePath "$(which ghc)" "${lib.getExeconfig.outputs.finalPackages.ghc}" samePath "$(which cabal)" "${lib.getExeconfig.outputs.finalPackages.cabal-install}" samePath "$(which haskell-language-server)" "${lib.getExeconfig.outputs.finalPackages.haskell-language-server}" '';};}
The text was updated successfully, but these errors were encountered:
The following shellHook will warn if the user accidentally ends up using a non-nix-shell haskell tools (such as that of
ghcup
). Perhaps haskell-flake can provide this as an opt-in module to import (like #160).The text was updated successfully, but these errors were encountered: