Skip to content

GitLab

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
  • Sign in / Register
GHC
GHC
  • Project overview
    • Project overview
    • Details
    • Activity
    • Releases
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
    • Locked Files
  • Issues 4,324
    • Issues 4,324
    • List
    • Boards
    • Labels
    • Service Desk
    • Milestones
    • Iterations
  • Merge Requests 373
    • Merge Requests 373
  • Requirements
    • Requirements
    • List
  • CI / CD
    • CI / CD
    • Pipelines
    • Jobs
    • Schedules
  • Security & Compliance
    • Security & Compliance
    • Dependency List
    • License Compliance
  • Operations
    • Operations
    • Incidents
    • Environments
  • Analytics
    • Analytics
    • CI / CD
    • Code Review
    • Insights
    • Issue
    • Repository
    • Value Stream
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Members
    • Members
  • Collapse sidebar
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
  • Glasgow Haskell Compiler
  • GHCGHC
  • Issues
  • #13742

Closed
Open
Opened May 22, 2017 by albertov@trac-albertov

Code using ConstraintKinds needs explicit kind signature with GHC 8.2.1

The attached module compiles without errors with GHC 8.0.1 but needs an explicit kind signature with GHC 8.2.1-rc2.

Mentioned in this ghc-dev thread.

Compiling the attached file fails gives the error:

[[1 of 1] Compiling CKBug            ( CKBug.hs, interpreted )

CKBug.hs:33:4: error:
    • Expected a type, but
      ‘(PropagIOConstraint l a,
        Missing (PropagIOVector l) (PropagIONullable l a),
        Elem (PropagIONullable l a) ~ a)’ has kind
      ‘Constraint’
    • In the type ‘((PropagIOConstraint l a,
                     Missing (PropagIOVector l) (PropagIONullable l a),
                     Elem (PropagIONullable l a) ~ a))’
      In the type declaration for ‘CanSerialize’
   |
33 |   (( PropagIOConstraint l a
   |    ^^^^^^^^^^^^^^^^^^^^^^^^...

CKBug.hs:42:4: error:
    • Expected a constraint,
        but ‘(CanSerialize l Double, CanSerialize l Int)’ has kind ‘*’
    • In the type ‘(CanSerialize l Double, CanSerialize l Int)’
      In the type declaration for ‘CanSerializePropagTypes’
   |
42 |    ( CanSerialize l Double
   |    ^^^^^^^^^^^^^^^^^^^^^^^...
Edited Mar 10, 2019 by Ryan Scott
Assignee
Assign to
None
Milestone
None
Assign milestone
Time tracking
None
Due date
None
Reference: ghc/ghc#13742