2

I can run this code in Haskell

module Foo where
test = 1

module Bar where
test = 2

module Main where
import Foo
import Bar
main = print "test"

But PureScript compiler return an error

Conflicting imports for test from modules Bar and Foo

Is this a bug?

4

1 回答 1

0

这不是一个错误,但它会被改变。

https://github.com/purescript/purescript/issues/1497

于 2015-10-08T11:18:11.253 回答