Skip to content

IHaskell issues #436

@djsamperi

Description

@djsamperi

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions