Git Product home page Git Product logo

hagl's People

Contributors

pparkkin avatar walkie 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

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

hagl's Issues

New maintainer?

hi!
It seems like a good repo without maintenance. I am Haskell newbie looking for a project to adopt.
I have forked the project and working to make it build. Does it make sense to change the code to run with latest versions of packages?
I changed .cabal to have >= insted of == and I get this error:

[ 6 of 23] Compiling Hagl.Exec        ( Hagl/Exec.hs, interpreted )

Hagl/Exec.hs:261:21: error:
    • Could not deduce (MonadFail (ExecM g))
        arising from a use of ‘processLocation’
      from the context: (Game g, Eq (Move g))
        bound by the type signature for:
                   step :: forall g. (Game g, Eq (Move g)) => ExecM g (Maybe Payoff)
        at Hagl/Exec.hs:260:1-55
    • In the second argument of ‘(>>=)’, namely ‘processLocation’
      In the expression: location >>= processLocation
      In an equation for ‘step’:
          step
            = location >>= processLocation
            where
                processLocation l
                  = case treeAction l of
                      Decision i -> decide i >>= performMove l
                      Chance d -> fromDist d >>= performMove l
                      Payoff p -> givePayoff p
                performMove l m
                  = do e <- getExec
                       ....
                inc (Decision p) ns = setForPlayer p (forPlayer p ns + 1) ns
                inc _ ns = ns
                decide i
                  = do p <- liftM (forPlayer i) players
                       ....
                ....
    |
261 | step = location >>= processLocation
    |                     ^^^^^^^^^^^^^^^

Hagl/Exec.hs:318:10: error:
    • No instance for (Applicative (ExecM g))
        arising from the superclasses of an instance declaration
    • In the instance declaration for ‘Monad (ExecM g)’
    |
318 | instance Monad (ExecM g) where
    |          ^^^^^^^^^^^^^^^

Hagl/Exec.hs:321:10: error:
    • No instance for (Applicative (StratM s g))
        arising from the superclasses of an instance declaration
    • In the instance declaration for ‘Monad (StratM s g)’
    |
321 | instance Monad (StratM s g) where
    |          ^^^^^^^^^^^^^^^^^^
Failed, five modules loaded.

Any suggestion on how I should proceed?
thanks

Cabal repl in a project depending on Hagl fails with "can't load .so/.DLL"

I created a new project with a dependency on Hagl, and tried to open up a REPL with "cabal repl" to play around with the Hagl DSL, but the command failed with the following message:

Loading package Hagl-3.0.0 ... <command line>: can't load .so/.DLL for: /vagrant/.cabal-sandbox/lib/x86_64-linux-ghc-7.8.3/Hagl-3.0.0/libHSHagl-3.0.0-ghc7.8.3.so (/vagrant/.cabal-sandbox/lib/x86_64-linux-ghc-7.8.3/Hagl-3.0.0/libHSHagl-3.0.0-ghc7.8.3.so: undefined symbol: Haglzm3zi0zi0_HaglziHistory_zuscore1_info)

Current version fails to build with recent versions of cabal (ghc 8.0.1)

There are some apparently minor changes to the library required per @peitalin due to changes in GHC over the last couple of years. I've gotten his forked version running without much trouble --- Is this project still maintained? I'd like to use the library but I don't have the Haskell background to make significant modifications or maintenance.

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.