Skip to content

doesn't work in ghci #32

Description

@l29ah

I've tried ghci with RecordDotPreprocessor (0.2.6) on GNU/Linux, but it doesn't seem to work at all (doesn't fail to load though):

‰ ghci -ignore-dot-ghci -fplugin=RecordDotPreprocessor -XOverloadedStrings -XFlexibleInstances -XIncoherentInstances -XMagicHash -XBangPatterns -XFlexibleContexts -XTypeApplications -XDeriveGeneric -XScopedTypeVariables -XDuplicateRecordFields -XDataKinds -XMultiParamTypeClasses -XTypeSynonymInstances
GHCi, version 8.10.1: https://www.haskell.org/ghc/  :? for help
Prelude> data A = A {a::Int}
Prelude> (A 666).a

<interactive>:2:2: error:
    • Couldn't match expected type ‘Int -> c’ with actual type ‘A’
    • Possible cause: ‘A’ is applied to too many arguments
      In the first argument of ‘(.)’, namely ‘(A 666)’
      In the expression: (A 666) . a
      In an equation for ‘it’: it = (A 666) . a
    • Relevant bindings include
        it :: A -> c (bound at <interactive>:2:1)
Prelude> :t (.a)
(.a) :: (Int -> c) -> A -> c

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions