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
  • #18833
Closed
Open
Created Oct 12, 2020 by Krzysztof Gogolewski@monoidalDeveloper

Inconsistent RuntimeRep defaulting in :info

With this module

{-# LANGUAGE RankNTypes, DataKinds, StandaloneKindSignatures, PolyKinds #-}
import GHC.Types
import GHC.Exts
type A :: forall (rep1 :: RuntimeRep) (rep2 :: RuntimeRep). TYPE rep1 -> TYPE rep2 -> Type
type A = FUN 'Many

ghci reports (-fno-print-explicit-foralls):

ghci> :i A
type A :: * -> * -> *
type A = (->) :: TYPE rep1 -> TYPE rep2 -> *

The RuntimeReps are hidden in the first line, but not in the second.

Edit: it's a bit clearer with -fprint-explicit-kinds:

type A :: * -> * -> *
type A @rep1 @rep2 = (->) rep1 rep2 :: TYPE rep1 -> TYPE rep2 -> *
Edited Oct 12, 2020 by Krzysztof Gogolewski
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information
Assignee
Assign to
Time tracking