Coder Social home page Coder Social logo

hs-monte-carlo's People

Contributors

cassiebaer avatar gliptak avatar identicalsnowflake avatar johntyree avatar meteficha avatar patperry avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

hs-monte-carlo's Issues

Expecting one more argument to `m'

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.

Use MonadFail

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?

Monad Transformer version is leaky

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.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.