Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

KindSignature on EmptyDataDecl #19

Closed
ysangkok opened this issue Jan 15, 2024 · 3 comments
Closed

KindSignature on EmptyDataDecl #19

ysangkok opened this issue Jan 15, 2024 · 3 comments

Comments

@ysangkok
Copy link

Program:

module Example (main) where
import Prelude
import Data.Kind (Type)

main :: IO ()
main = pure ()
data SameKind :: Type

Fails with MicroHs:

ERR: mhs: "./Example.hs": line 7, col 15:
  found:    ::
  expected: LIdent ( = deriving ; }

Succeeds with GHC:

ghc Example.hs -XHaskell98 -XKindSignatures -XEmptyDataDecls

This is unexpected since these extensions are listed as supported.

@augustss
Copy link
Owner

I believe that MicroHs implements everything mention in Explicitly-kinded quantification.
GHC also accepts what you are trying tp do, but I'm not going to implement that. Instead MicroHs allows StandaloneKindSignatures.

@ysangkok
Copy link
Author

StandaloneKindSignatures are not in the list included in the README. I didn't know they were supported. Are they implied by some other extension? If so, I'd be curious to know which.

@augustss
Copy link
Owner

I simply forgot to list. 🙂

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants