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,868
    • Issues 4,868
    • List
    • Boards
    • Service Desk
    • Milestones
    • Iterations
  • Merge requests 456
    • Merge requests 456
  • 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
  • #2082
Closed
Open
Created Feb 08, 2008 by chad.scherrer@trac-chad.scherrer

In ghci, :i leaves out parens in type

In ghci, :i sometimes leaves out parentheses in the type. For example, in Data.Stream,

Prelude Data.Stream> :i Stream

data Stream a where
  Stream :: forall a s.
            (Data.Stream.Unlifted s) =>
            !s -> Step a s -> !s -> Stream a
        -- Defined in Data.Stream

instance Functor Stream -- Defined in Data.Stream

Here the type

(Data.Stream.Unlifted s) => !s -> Step a s -> !s -> Stream a

should instead be

(Data.Stream.Unlifted s) => (!s -> Step a s) -> !s -> Stream a
Edited Mar 09, 2019 by Ian Lynagh <igloo@earth.li>
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information
Assignee
Assign to
Time tracking