We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5aa3b60 commit 0c86e7fCopy full SHA for 0c86e7f
examples/passing/ClassRefSyntax.purs
@@ -0,0 +1,13 @@
1
+module Lib (class X, go) where
2
+
3
+ class X a where
4
+ go :: a -> a
5
6
+module Main where
7
8
+ import Lib (class X, go)
9
10
+ go' :: forall a. (X a) => a -> a
11
+ go' = go
12
13
+ main = Control.Monad.Eff.Console.log "Done"
examples/passing/TypeWithoutParens.purs
@@ -0,0 +1,16 @@
+module Lib (X, Y) where
+ data X = X
+ type Y = X
+ import Lib (X, Y)
+ idX :: X -> X
+ idX x = x
+ idY :: Y -> Y
14
+ idY y = y
15
16
0 commit comments