Skip to content

Compiling flat vector doesn't terminate #7

@eayus

Description

@eayus

Not sure whether this is known behaviour, but compileing the following example doesn't terminate (it checks fine)

data Nat where
  Zero : Nat
  Succ : Nat -> Nat

Pair : Type -> Type -> Type

data Pair a b where
  MkPair : a -> b -> Pair a b

data Unit where
  MkUnit : Unit

Vector : Nat -> Type -> Type
Vector Zero _ = Unit
Vector (Succ n) a = Pair a (Vector n a)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions