Describe the bug
The Jupyter kernel crashes with relatively simple input.
The same input did not cause a crash in earlier versions of HaskellR.
To Reproduce
Open test.ipynb in Jupyter with IHaskell kernel, and
insert the following into a cell:
-- Permute a list using a specified list of indices
perm :: [Int] -> [Double] -> [Double]
perm [] _ = []
perm (x:xs) v = (v !! x):perm xs v
Running the cell causes a kernel crash.
Expected behavior
This is valid Haskell, accepted by GHC, and the function can
be tested using perm [0, 2, 1] [1,2,3]
with expected output [1.0,3.0,2.0].
Environment
- Ubuntu 24.04
- HaskellR (inline-r) v1.0.2
Additional context
There are other examples that trigger the crash.
Reverting to HaskellR v1.0.1 seems to resolve these problems.
Describe the bug
The Jupyter kernel crashes with relatively simple input.
The same input did not cause a crash in earlier versions of HaskellR.
To Reproduce
Open
test.ipynbin Jupyter with IHaskell kernel, andinsert the following into a cell:
Running the cell causes a kernel crash.
Expected behavior
This is valid Haskell, accepted by GHC, and the function can
be tested using
perm [0, 2, 1] [1,2,3]with expected output
[1.0,3.0,2.0].Environment
Additional context
There are other examples that trigger the crash.
Reverting to HaskellR v1.0.1 seems to resolve these problems.