packages feed

hruby-0.0.3: hruby.cabal

-- Initial hruby.cabal generated by cabal init.  For further documentation,
--  see http://haskell.org/cabal/users-guide/

name:                hruby
version:             0.0.3
synopsis:            Embed Ruby in your Haskell program.
description:         Warning: this is completely experimental. Everything you need should be in "Foreign.Ruby".
license:             BSD3
license-file:        LICENSE
author:              Simon Marechal
maintainer:          bartavelle@gmail.com
-- copyright:           
category:            Language
build-type:          Simple
cabal-version:       >=1.8

Flag Ruby19
    Description: Enable when you use Ruby 1.9 (not implemented yet). It will default to Ruby 1.8.
    Default: False

source-repository head
  type: git
  location: git://github.com/bartavelle/hruby.git


library
  exposed-modules:      Foreign.Ruby, Foreign.Ruby.Bindings, Foreign.Ruby.Helpers
  ghc-options:          -Wall
  extensions:           BangPatterns, OverloadedStrings
  build-depends:        base ==4.6.*, aeson, bytestring, attoparsec, vector, text, unordered-containers
  if flag(ruby19)
      extra-libraries:      ruby1.9
      c-sources:            cbits1.9/shim.c
      install-includes:     cbits1.9/shim.h
      include-dirs:         cbits1.9
  else
      extra-libraries:      ruby1.8
      c-sources:            cbits1.8/shim.c
      install-includes:     cbits1.8/shim.h
      include-dirs:         cbits1.8

Test-Suite test-roundtrip
  hs-source-dirs: test
  type:           exitcode-stdio-1.0
  ghc-options:    -Wall
  extensions:     OverloadedStrings
  build-depends:  base,hruby,aeson,QuickCheck,text,attoparsec,vector
  main-is:        roundtrip.hs