I hereby claim:
- I am ajhager on github.
- I am ajhager (https://keybase.io/ajhager) on keybase.
- I have a public key ASDZav03KPYssImthAiX25rH2xRZfRKc206AK_rwduRfego
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
module Flag where | |
type Parser a = Parser | |
parse : Parser a -> Result String a | |
parseWith : Parser a -> List String -> Dict String String -> Result String a | |
parsing : (a -> b) -> Parser (a -> b) | |
withOpt : Parser (a -> b) -> Parser a -> Parser b | |
withArg : Parser (a -> b) -> Parser a -> Parser b | |
withEnv : Parser (a -> b) -> Parser a -> Parser b |
module Main where | |
import MyEngine | |
myView : Signal (MyEngine.NewElement) | |
myView = Signal.constant (MyEngine.Div "Hello") | |
port engine : Task x () | |
port engine = MyEngine.render myView |
main : Element | |
main = plainText "Hello, World!" |
package main | |
func main() { | |
println("HELLO GIST!") | |
} |
package cont | |
modules = main | |
opts = "--codegen javascript -o cont.js" |
Foo: cover from Int { | |
new: static func (i: Int) -> This { | |
i | |
} | |
println: func { | |
"%d" printfln(this) | |
} | |
} |
test: func (f: Func()) { | |
f() | |
} | |
main: func { | |
i := 0 | |
test(|| | |
// Uncomment the next line and all issues disappear. | |
//i toString() println() |
$ cat test.ooc | |
use test | |
$ cat test.use | |
Name: test | |
Description: LibPaths test library | |
Version: 0.1 | |
SourcePath: . | |
LibPaths: . |
Vec2: class { | |
x, y: Float | |
init: func (=x, =y) | |
repr: func -> String { "Vec2(%.2f, %.2f)" format(x, y) } | |
} | |
operator * (left: Float, right: Vec2) -> Vec2 { | |
return Vec2 new(left * right x, left * right y) | |
} |