Skip to content

GitLab

  • Menu
Projects Groups Snippets
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
  • Sign in / Register
  • GHC GHC
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
    • Locked Files
  • Issues 4,865
    • Issues 4,865
    • List
    • Boards
    • Service Desk
    • Milestones
    • Iterations
  • Merge requests 461
    • Merge requests 461
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
    • Test Cases
  • Deployments
    • Deployments
    • Releases
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Code review
    • Insights
    • Issue
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • Glasgow Haskell Compiler
  • GHCGHC
  • Issues
  • #15782
Closed
Open
Created Oct 19, 2018 by Icelandjack@IcelandjackReporter

Visible type/kind applications in declaration of data/type constructors

I'm making this ticket to keep track of this, I don't know if it's a good idea.

Allow visible type/kind applications when declaring data/type constructors on the LHS of :: (from Phab comment).

data
    Proxy @k :: k -> Type where
  MkProxy @k :: Proxy @k (a :: k)

&

data
  Fin     :: N -> Type where
  FinO @n ::          Fin (S n)
  FinS @n :: Fin n -> Fin (S n)

&

data
  Elem  @k @n  :: Vec n k -> Type where
  ElemO @a @as :: Elem @k @(S n) (a:>as)
  ElemS @a @as :: Elem @k @n     as
               -> Elem @k @(S n) (a:>as)
Edited Mar 10, 2019 by Icelandjack
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information
Assignee
Assign to
Time tracking