Sha256: a4c294c95fa0e7fbf53ef1e94da9adcb73142bcee81307a17115f0185e784a2e

Contents?: true

Size: 389 Bytes

Versions: 3

Compression:

Stored size: 389 Bytes

Contents

import Language.Ruby.Hubris.LibraryBuilder

main = do 
  -- Hubris.hs ought to be installed on the system, really.
  source <- generateSource ["Language/Ruby/Hubris.hs","Language/Ruby/Foo.hs"] "Foo"
  case source of
    Left err ->      error $ show err
    Right Nothing -> error "shouldn't happen" -- maybe throw an error in the interpreter monad instead
    Right (Just a) -> putStrLn a

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
hubris-0.0.6 Haskell/Language/Ruby/testLib.hs
hubris-0.0.5 Haskell/Language/Ruby/testLib.hs
hubris-0.0.4 Haskell/Language/Ruby/testLib.hs