Skip to content

Commit ef27736

Browse files
committed
Merge pull request purescript#1095 from purescript/external-ffi-files
Move JS codegen for compile into psc
2 parents cdd856c + 6a21e12 commit ef27736

File tree

223 files changed

+2919
-2494
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

223 files changed

+2919
-2494
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,5 @@ cabal.sandbox.config
99
*.lksh*
1010
.virthualenv
1111
.psci_modules/
12+
bower_components/
1213
tmp/

examples/failing/365.purs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
module Main where
22

3+
import Prelude
4+
35
class C a where
46
f :: a -> a
57
g :: a -> a

examples/failing/438.purs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,11 @@
11
module Main where
2-
2+
3+
import Prelude
4+
35
data Fix f = In (f (Fix f))
46

57
instance eqFix :: (Eq (f (Fix f))) => Eq (Fix f) where
68
(==) (In f) (In g) = f == g
79
(/=) a b = not (a == b)
8-
10+
911
example = In [] == In []

examples/failing/ArrayType.purs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
module Main where
22

3+
import Prelude
34
import Debug.Trace
45

56
bar :: Number -> Number -> Number

examples/failing/Arrays.purs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
module Main where
22

3-
import Prelude
3+
import Prelude
44

5-
test = \arr -> arr !! (0 !! 0)
5+
test = \arr -> arr !! (0 !! 0)

examples/failing/Do.purs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
module Main where
22

3+
import Prelude
4+
35
test1 = do let x = 1
46

57
test2 y = do x <- y

examples/failing/DuplicateDeclarationsInLet.purs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
module Main where
22

3+
import Prelude
4+
35
foo = a
46
where
57
a :: Number
Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,11 @@
11
module DuplicateProperties where
22

3+
import Prelude
4+
35
foreign import data Test :: # * -> *
46

5-
foreign import subtractX "" :: forall r. Test (x :: Unit | r) -> Test r
7+
foreign import subtractX :: forall r. Test (x :: Unit | r) -> Test r
68

7-
foreign import hasX "" :: Test (x :: Unit, y :: Unit)
9+
foreign import hasX :: Test (x :: Unit, y :: Unit)
810

911
baz = subtractX (subtractX hasX)
Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,11 @@
11
module DuplicateProperties where
22

3+
import Prelude
4+
35
foreign import data Test :: # * -> *
46

5-
foreign import subtractX "" :: forall r. Test (x :: Unit | r) -> Test r
7+
foreign import subtractX :: forall r. Test (x :: Unit | r) -> Test r
68

7-
foreign import hasX "" :: forall r. Test (x :: Unit, y :: Unit | r)
9+
foreign import hasX :: forall r. Test (x :: Unit, y :: Unit | r)
810

911
baz = subtractX (subtractX hasX)
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
11
module Main where
22

3+
import Prelude
4+
35
type Foo a a = a

0 commit comments

Comments
 (0)