Sha256: 71acd77753b97abd3d5a3a255d1a13f804c695c0af72622e6da17b6ba00c541c

Contents?: true

Size: 370 Bytes

Versions: 1

Compression:

Stored size: 370 Bytes

Contents

# Haskell On Ruby

```rb
require 'haskell'

# Invoke sandbox for executing ghc
Haskell.invoke_sandbox!(File.expand_path('../', __FILE__))

Haskell.compile %{
  add :: Integer -> Integer -> Integer
  add x y = x + y
  result = add 1 2
}

while Haskell.compiling?
  # wait for....
end

p Haskell.execute
#=> 3

# Don't forget to revoke sandbox
Haskell.revoke_sandbox!
```

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
haskell-1.0.1 README.md