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

Arrow types disallowed in type definitions #10

Open
josyoun opened this issue Jan 29, 2015 · 2 comments
Open

Arrow types disallowed in type definitions #10

josyoun opened this issue Jan 29, 2015 · 2 comments

Comments

@josyoun
Copy link

josyoun commented Jan 29, 2015

It appears that arrow types are currently not supported. For example, in vanilla Haskell, the following works fine:

data Bar = Bar {
    bar :: String -> String
}

With the Record package, the following code

type Foo = [r| {
    foo :: String -> String 
} |] 

generates the error

    `String' is applied to too many type arguments
    In the type `Record.Types.Record1 "foo" (String (->) String)'
    In the type declaration for `Foo'
Failed, modules loaded: none.
@nikita-volkov
Copy link
Owner

Yes, the parser doesn't support lambdas yet.

I won't be implementing it, since I'm working on a complete reimplementation of parsing, which hacks around the "haskell-src-exts" parser. I'm open for pull requests however.

@3noch
Copy link

3noch commented Jul 14, 2016

How's it going?

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

3 participants