Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

HACKING.md : part about ghci outdated? #177

Closed
andreasabel opened this issue Dec 14, 2022 · 0 comments
Closed

HACKING.md : part about ghci outdated? #177

andreasabel opened this issue Dec 14, 2022 · 0 comments

Comments

@andreasabel
Copy link
Member

Stumbled over HACKING.md and tried it out:

filepath/HACKING.md

Lines 20 to 21 in 7139cd3

The `.ghci` file is set up to allow you to type `ghci` to open the library, then `:go` will regenerate the
tests and run them.

$ make gen
runhaskell Generate.hs

$ ghci
GHCi, version 9.4.3: https://www.haskell.org/ghc/  :? for help

<no location info>: warning:
    -XGeneralizedNewtypeDeriving is not allowed in Safe Haskell; ignoring -XGeneralizedNewtypeDeriving

<no location info>: error: module ‘Test’ cannot be found locally
Failed, no modules loaded.

<interactive>:1:1: error:
    attempting to use module ‘main:System.FilePath.Windows’ (./System/FilePath/Windows.hs) which is not loaded

<interactive>:1:1: error:
    attempting to use module ‘main:System.FilePath.Posix’ (./System/FilePath/Posix.hs) which is not loaded
macro 'docs' overwrites builtin command.  Use ':def!' to overwrite.
Loaded GHCi configuration from /Users/abel/bin/src/filepath/.ghci
ghci> 

Yeah, this doesn't seem to work anymore.
cabal repl fails in a similar fashion.

Maybe it is just cabal test which works nowadays?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant