walkie / hagl Goto Github PK
View Code? Open in Web Editor NEWA Haskell DSEL for experimental game theory.
License: BSD 3-Clause "New" or "Revised" License
A Haskell DSEL for experimental game theory.
License: BSD 3-Clause "New" or "Revised" License
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.
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)
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
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.