haskell / filepath

Haskell FilePath core library
BSD 3-Clause "New" or "Revised" License
66 stars 33 forks source link

HACKING.md : part about ghci outdated? #177

Closed andreasabel closed 1 year ago

andreasabel commented 1 year ago

Stumbled over HACKING.md and tried it out: https://github.com/haskell/filepath/blob/7139cd3383a2aae440a57b5604a8182d9a983715/HACKING.md?plain=1#L20-L21

$ 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?