Skip to content
This repository has been archived by the owner. It is now read-only.

Multiple declarations of data constructor allowed in same scope #25

Closed
jameshfisher opened this issue Nov 30, 2011 · 1 comment

Comments

@jameshfisher
Copy link
Contributor

commented Nov 30, 2011

Given

data Tree = Foo | Foo

I get the JS

var Foo = function(){};
var Foo = function(){};

where equivalent Haskell complains: ERROR line 1 - Multiple declarations for data constructor "Foo"

See http://codepad.org/b7yFXkvp

@puffnfresh

This comment has been minimized.

Copy link
Owner

commented Dec 3, 2011

Fixed in daad80b

@puffnfresh puffnfresh closed this Dec 3, 2011

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
2 participants
You can’t perform that action at this time.