GHC 9.2からGHC 9.10までで動作確認しています(第18章はGHC 9.10のみ)。
$ ghci chap02-phantom-types-and-proxy/Main.hs
$ ghci chap03-kind-polymorphism/Main.hs
$ ghci chap05-type-families/Main.hs
$ ghci chap06-type-classes/Main.hs
$ ghci chap07-gadts/Main.hs
$ ghci chap08-examples/Main.hs
$ ghci chap09-singletons/Main.hs
$ cabal repl chap09-singletons/SingletonsTHTest.hs
$ ghci chap10-theorem-proving/Main.hs
$ runghc chap12-ghc-typenats/LargePeanoNat.hs # -> エラー
$ runghc chap12-ghc-typenats/LargeNat.hs
$ runghc chap12-ghc-typenats/LimitRange.hs
$ runghc chap12-ghc-typenats/NoEquality.hs # -> エラー
$ runghc chap12-ghc-typenats/NoKnownNat.hs # -> エラー
$ cabal run chap12-ghc-typenats/PluginExample.hs
$ cabal run chap12-ghc-typenats/PluginExample2.hs # -> エラー
$ cabal run chap12-ghc-typenats/SingletonsBaseExample.hs
$ cabal run chap12-ghc-typenats/TypeNaturalExample.hs
$ cabal run chap12-ghc-typenats/ConstraintsExample.hs
$ runghc chap13-symbol/OverloadedLabels.hs
$ ghci chap14-ghc-generics/ConstructorName.hs
$ ghci chap14-ghc-generics/DeriveAnyClass.hs
$ ghci chap14-ghc-generics/Generically.hs # GHC 9.4 以降
$ ghci chap15-type-level-list/reverse.hs
$ ghci chap15-type-level-list/HList.hs
$ ghci chap15-type-level-list/List.hs
$ ghci chap16-typeable/PrintType.hs
$ ghci chap16-typeable/ToString.hs
$ ghci chap16-typeable/ToStringAlt.hs
$ cabal repl chap16-typeable/OpenUnion.hs
$ ghci chap17-theorem-proving-2/List.hs
GHC 9.10以降が必要です。
$ ghci chap18-dependent-haskell/Id.hs