$ ghcup set ghc 9.10.1
[ Info ] GHC 9.10.1 successfully set as default version
$ echo System.INotify.initINotify | cabal repl --build-depends hinotify
Resolving dependencies...
Build profile: -w ghc-9.10.1 -O1
In order, the following will be built (use -v for more details):
- fake-package-0 (interactive) (lib) (first run)
Configuring library for fake-package-0...
Warning: No exposed modules
GHCi, version 9.10.1: https://www.haskell.org/ghc/ :? for help
Loaded GHCi configuration from /tmp/cabal-repl.-6128/setcwd.ghci
ghci> *** Exception: fdType: unsupported operation (unknown file type)
ghci> Leaving GHCi.
$ ghcup set ghc 9.6.6
[ Info ] GHC 9.6.6 successfully set as default version
$ echo System.INotify.initINotify | cabal repl --build-depends hinotify
Resolving dependencies...
Build profile: -w ghc-9.6.6 -O1
In order, the following will be built (use -v for more details):
- fake-package-0 (interactive) (lib) (first run)
Configuring library for fake-package-0...
Warning: No exposed modules
GHCi, version 9.6.6: https://www.haskell.org/ghc/ :? for help
Loaded GHCi configuration from /tmp/cabal-repl.-6275/setcwd.ghci
ghci> <inotify fd=15>
ghci> Leaving GHCi.