Skip to content
GitLab
Projects Groups Topics Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Register
  • Sign in
  • C curry-base
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributor statistics
    • Graph
    • Compare revisions
  • Issues 10
    • Issues 10
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 1
    • Merge requests 1
  • Deployments
    • Deployments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • Repository
  • Wiki
    • Wiki
  • Activity
  • Graph
  • Create a new issue
  • Commits
  • Issue Boards
Collapse sidebar
  • curry
  • curry-base
  • Merge requests
  • !19

Add kind information to type declarations in FlatCurry

  • Review changes

  • Download
  • Patches
  • Plain diff
Merged Fredrik Wieczerkowski requested to merge typedecl-kinds into master Oct 17, 2020
  • Overview 3
  • Commits 2
  • Changes 3

Based on !18 (merged).

This adds kind information to all type variables in FlatCurry, including those in data/type declarations, by changing

data TypeDecl
  = Type    QName Visibility [TVarIndex] [ConsDecl]
  | TypeSyn QName Visibility [TVarIndex] TypeExpr
  | TypeNew QName Visibility [TVarIndex] NewConsDecl

to

data TypeDecl
  = Type    QName Visibility [TVarWithKind] [ConsDecl]
  | TypeSyn QName Visibility [TVarWithKind] TypeExpr
  | TypeNew QName Visibility [TVarWithKind] NewConsDecl

where

type TVarIndex = Int
type TVarWithKind = (TVarIndex, Kind)
Assignee
Assign to
Reviewers
Request review from
Time tracking
Source branch: typedecl-kinds