Skip to content

GitLab

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
C
curry-frontend
  • Project overview
    • Project overview
    • Details
    • Activity
    • Releases
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 62
    • Issues 62
    • List
    • Boards
    • Labels
    • Service Desk
    • Milestones
  • Merge Requests 4
    • Merge Requests 4
  • Operations
    • Operations
    • Incidents
  • Analytics
    • Analytics
    • Repository
    • Value Stream
  • Wiki
    • Wiki
  • Members
    • Members
  • Activity
  • Graph
  • Create a new issue
  • Commits
  • Issue Boards
Collapse sidebar
  • curry
  • curry-frontend
  • Issues
  • #23

Closed
Open
Opened Jun 27, 2018 by Jan Rasmus Tikovsky @jrt

Declaration of type class with nullary class method yields internal error

Consider the following type class declaration:

class Arbitrary a where
  arbitrary :: IO a

Compiling a module including this declaration results in the following error message from the Curry frontend:

kics2-frontend: Internal error: Base.Typing.matchType: (TypeApply (TypeConstructor (QualIdent {qidModule = Just (ModuleIdent {midPosition = NoPos, midQualifiers = ["Prelude"]}), qidIdent = Ident {idPosition = Position {file = "/net/medoc/home/jrt/forschung/quickchance/2018-QuickChance/.cpm/packages/pflp-1.0.1/src/.curry/PFLP.icurry", line = 8, column = 12}, idName = "IO", idUnique = 0}})) (TypeVariable 0)) (TypeArrow (TypeConstructor (QualIdent {qidModule = Nothing, qidIdent = Ident {idPosition = NoPos, idName = "()", idUnique = 0}})) (TypeApply (TypeConstructor (QualIdent {qidModule = Just (ModuleIdent {midPosition = NoPos, midQualifiers = ["Prelude"]}), qidIdent = Ident {idPosition = Position {file = "/net/medoc/home/jrt/forschung/quickchance/2018-QuickChance/.cpm/packages/pflp-1.0.1/src/.curry/PFLP.icurry", line = 8, column = 12}, idName = "IO", idUnique = 0}})) (TypeVariable (-1))))
CallStack (from HasCallStack):
  error, called at src/Base/Messages.hs:78:21 in main:Base.Messages
kics2c: *** UserException: Illegal source program
Assignee
Assign to
None
Milestone
None
Assign milestone
Time tracking
None
Due date
None
Reference: curry/curry-frontend#23