is(String, "foo") // true
is(/foo/, "foo") // true
is("foo", "foo") // true
// See test file for more exemples...
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module Test where | |
import Text (asText) | |
import Array (Array, get) | |
import Json.Decode (..) | |
import Maybe (..) | |
type alias Foo = | |
{ foo : String | |
, bar : Bar |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
interface Functor<A>{ | |
flatMap<A,B> (f: (A) => B): Functor<B> | |
} | |
interface Monad<A> extends Functor<A> { | |
bind: (A) => Monad<A> | |
} | |
interface Option<A> extends Monad<A>{ | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
### Keybase proof | |
I hereby claim: | |
* I am warry on github. | |
* I am warry (https://keybase.io/warry) on keybase. | |
* I have a public key whose fingerprint is E875 F7BA 4FB3 FE3A E55B 8E48 91FA 985A B75E 490A | |
To claim this, I am signing this object: |
We'll take the stylus plugin as an exemple.
To make our plugin to work with node, we are going to use Christopher's js-transpiler. It allows to develop a shell script that will work independtly on both node and the jvm. You can call a shell script from the cli like this:
node my-shell.js file.extension '{"flag":true}'
You can use this to debug your processor until it works!
NewerOlder