Skip to content

Commit

Permalink
Fix GHC 9.6 kernel (closes #51)
Browse files Browse the repository at this point in the history
  • Loading branch information
thomasjm committed Nov 24, 2023
1 parent cce34cf commit a242ed0
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion languages/haskell/kernel.nix
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,10 @@ let
proc = "${ghc.out}/bin/ghci";
}];

libDir = if builtins.compareVersions ghc.version "9.6" < 0
then "${ghc.out}/lib/${ghc.meta.name}"
else "${ghc.out}/lib/${ghc.meta.name}/lib";

in

common.makeJupyterKernelInner metaOnly (
Expand All @@ -37,7 +41,7 @@ common.makeJupyterKernelInner metaOnly (
"${ihaskell}/bin/ihaskell"
"kernel"
"{connection_file}"
"-l" "${ghc.out}/lib/${ghc.meta.name}"
"-l" libDir
"--html-code-wrapper-class" "cm-s-hite"
"--html-code-token-prefix" ""
"+RTS" "-M3g" "-N2" "-RTS"
Expand Down

0 comments on commit a242ed0

Please sign in to comment.