Skip to content

Commit

Permalink
make use of cabal system
Browse files Browse the repository at this point in the history
	new file:   COPYING
	new file:   Setup.hs
	new file:   cuba-monta-carlo.cabal
	renamed:    Main.hs -> src/Main.hs
	renamed:    Makefile -> src/Makefile
	renamed:    Cuba.hs -> src/Math/Cuba.hs
  • Loading branch information
Frank Waterret committed Jan 20, 2011
1 parent 5e2b536 commit 874e4a8
Show file tree
Hide file tree
Showing 6 changed files with 731 additions and 4 deletions.
674 changes: 674 additions & 0 deletions COPYING

Large diffs are not rendered by default.

6 changes: 6 additions & 0 deletions Setup.hs
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
module Main (main) where

import Distribution.Simple

main :: IO ()
main = defaultMain
48 changes: 48 additions & 0 deletions cuba-monta-carlo.cabal
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
name: cuba-monta-carlo
version: 0.0.1
license: GPL-3
license-file: COPYING
copyright: (c) Frank Waterret
author: Frank Waterret
maintainer: Frank Waterret <waterret@gmail.com>
bug-reports: mailto:waterret@gmail.com
stability: unstable
homepage: http://code.google.com/p/cuba-haskell/
synopsis: A haskell binding of Cuba Monta Carlo library.
category: Math
cabal-version: >= 1.6
build-type: Simple

Description:
This is a Haskell binding for Cuba Monta Carlo library. This binding
currently only provide limited access to Vegas algorithm in Cuba
library. The Cuba library should already be installed in order to
install this binding. Please note that the website of the program is
still not working as expected. If you have some problems, contact the
author directly through email instead.

source-repository head
type: svn
location: http://cuba-haskell.googlecode.com/svn/trunk/

flag threaded
default: False

executable cuba-test
hs-source-dirs: src
main-is: Main.hs
extra-libraries: cuba
build-depends: base >= 4.2 && < 5
ghc-options: -Wall
if flag(threaded)
ghc-options: -threaded

library
exposed-modules: Math.Cuba
hs-source-dirs: src
extra-libraries: cuba
build-depends: base >= 4.2 && < 5
ghc-options: -Wall
if flag(threaded)
ghc-options: -threaded

2 changes: 1 addition & 1 deletion Main.hs → src/Main.hs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module Main where

import Cuba
import Math.Cuba

myIntegrand :: Integrand
myIntegrand xs d | length xs /= 3 = undefined
Expand Down
File renamed without changes.
5 changes: 2 additions & 3 deletions Cuba.hs → src/Math/Cuba.hs
Original file line number Diff line number Diff line change
@@ -1,11 +1,10 @@
{-# LANGUAGE ForeignFunctionInterface #-}

module Cuba where
module Math.Cuba where

import GHC.Ptr
import Foreign
import Foreign.C.Types
import Monad
import Control.Monad

seed :: Int
seed = 0
Expand Down

0 comments on commit 874e4a8

Please sign in to comment.