Skip to content

Purs asked me to report this crash to this URL #4551

Open

Description

@mikesol

Description

I was asked to report this by my IDE. I was using an infix operator : for a typelevel Cons operation. When I went back to Cons, it resolved itself.

CallStack (from HasCallStack):
  error, called at src/Language/PureScript/Crash.hs:10:3 in purescript-0.15.15-A1Hsm5jzdq3K6f9tg0KeFN:Language.PureScript.Crash
  internalError, called at src/Language/PureScript/TypeChecker/Kinds.hs:242:7 in purescript-0.15.15-A1Hsm5jzdq3K6f9tg0KeFN:Language.PureScript.TypeChecker.Kinds
  inferKind, called at src/Language/PureScript/TypeChecker/Kinds.hs:327:25 in purescript-0.15.15-A1Hsm5jzdq3K6f9tg0KeFN:Language.PureScript.TypeChecker.Kinds
  checkKind', called at src/Language/PureScript/TypeChecker/Kinds.hs:303:13 in purescript-0.15.15-A1Hsm5jzdq3K6f9tg0KeFN:Language.PureScript.TypeChecker.Kinds
  checkKind, called at src/Language/PureScript/TypeChecker/Types.hs:476:45 in purescript-0.15.15-A1Hsm5jzdq3K6f9tg0KeFN:Language.PureScript.TypeChecker.Types

To Reproduce

No idea TBH, not sure if it's as easy as just:

data Cons a b
data Nil
infixr 6 type Cons as :

type Foo = Unit : Nil

Happened on 0.15.15

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions