mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-30 15:21:12 +00:00
30 lines
511 B
Text
30 lines
511 B
Text
interface Primary
|
|
exposes [ blah2, blah3, str, alwaysThree, identity, z, w, succeed, withDefault, yay ]
|
|
imports [ Dep1, Dep2.{ two, foo }, Dep3.Blah.{ bar }, Res ]
|
|
|
|
blah2 = Dep2.two
|
|
blah3 = bar
|
|
|
|
str = Dep1.str
|
|
|
|
alwaysThree = \_ -> Dep1.three
|
|
|
|
identity = \a -> a
|
|
|
|
z = identity (alwaysThree {})
|
|
|
|
w : Dep1.Identity {}
|
|
w = Identity {}
|
|
|
|
succeed : a -> Dep1.Identity a
|
|
succeed = \x -> Identity x
|
|
|
|
withDefault = Res.withDefault
|
|
|
|
yay : Res.Res {} err
|
|
yay =
|
|
ok = Ok "foo"
|
|
|
|
f = \_ -> {}
|
|
|
|
Res.map ok f
|