patperry / hs-monte-carlo Goto Github PK
View Code? Open in Web Editor NEWA Monte Carlo monad and transformer for Haskell.
License: Other
A Monte Carlo monad and transformer for Haskell.
License: Other
When using MCT, there seems to be a LOT of allocation compared to the non-transformed version.
See the zip file here: http://db.tt/pMJLmfPp
unzip mc.zip; cd mc; ./run_test.sh
On my system, the non-leaky version allocates 58k. The leaky version allocates 23 GB.
monte-carlo > [1 of 9] Compiling Control.Monad.MC.GSLBase
monte-carlo >
monte-carlo > /tmp/stack-75c0f00591728cdb/monte-carlo-0.6.2/lib/Control/Monad/MC/GSLBase.hs:114:5: error:
monte-carlo > ‘fail’ is not a (visible) method of class ‘Monad’
monte-carlo > |
monte-carlo > 114 | fail msg = MC $ \_ -> fail msg
monte-carlo > | ^^^^
monte-carlo >
In future versions of this library, is it important to maintain backward compatibility with GHC versions before the MonadFail
change?
Hi, when I tried to install this library, I got the following error.
Registering gsl-random-0.4.3...
Downloading monte-carlo-0.4.1...
Configuring monte-carlo-0.4.1...
Building monte-carlo-0.4.1...
Preprocessing library monte-carlo-0.4.1...
[ 1 of 12] Compiling Control.Monad.MC.Walker ( lib/Control/Monad/MC/Walker.hs, dist/build/Control/Monad/MC/Walker.o )
[ 2 of 12] Compiling Data.Summary.Utils ( lib/Data/Summary/Utils.hs, dist/build/Data/Summary/Utils.o )
[ 3 of 12] Compiling Data.Summary.Bool ( lib/Data/Summary/Bool.hs, dist/build/Data/Summary/Bool.o )
[ 4 of 12] Compiling Data.Summary.Double ( lib/Data/Summary/Double.hs, dist/build/Data/Summary/Double.o )
[ 5 of 12] Compiling Data.Summary ( lib/Data/Summary.hs, dist/build/Data/Summary.o )
[ 6 of 12] Compiling Control.Monad.MC.GSLBase ( lib/Control/Monad/MC/GSLBase.hs, dist/build/Control/Monad/MC/GSLBase.o )
[ 7 of 12] Compiling Control.Monad.MC.Base ( lib/Control/Monad/MC/Base.hs, dist/build/Control/Monad/MC/Base.o )
lib/Control/Monad/MC/Base.hs:23:24:
Expecting one more argument to `m'
In the class declaration for `MonadMC'
cabal: Error: some packages failed to install:
monte-carlo-0.4.1 failed during the building phase. The exception was:
ExitFailure 1
I'm using ghc 7.4.2.
The latest version of primitive is 0.7.2.0. monte-carlo requires <0.7.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.