euterpea / hsom Goto Github PK
View Code? Open in Web Editor NEWSupporting Impelementation for Haskell School of Music
License: zlib License
Supporting Impelementation for Haskell School of Music
License: zlib License
Library to accompany the Haskell School of Music textbook. See License file for licensing information. Send questions/comments to Donya Quick ([email protected]).
Markov chain library dependency will not build on GHC 8.
Hi i'm a beginner in haskell and i'm trying to install Euterpea and i got this error:
cabal install Euterpea
Resolving dependencies...
cabal: Could not resolve dependencies:
[__0] trying: Euterpea-2.0.7 (user goal)
[__1] next goal: Euterpea:setup.Cabal (dependency of Euterpea)
[__1] rejecting: Euterpea:setup.Cabal-2.4.0.1/installed-2.4...,
Euterpea:setup.Cabal-3.0.0.0, Euterpea:setup.Cabal-2.4.1.0,
Euterpea:setup.Cabal-2.4.0.1, Euterpea:setup.Cabal-2.4.0.0 (conflict: Euterpea
=> Euterpea:setup.Cabal>=1.8 && <1.25)
[__1] rejecting: Euterpea:setup.Cabal-2.2.0.1, Euterpea:setup.Cabal-2.2.0.0,
Euterpea:setup.Cabal-2.0.1.1, Euterpea:setup.Cabal-2.0.1.0,
Euterpea:setup.Cabal-2.0.0.2, Euterpea:setup.Cabal-1.24.2.0,
Euterpea:setup.Cabal-1.24.0.0, Euterpea:setup.Cabal-1.22.8.0,
Euterpea:setup.Cabal-1.22.7.0, Euterpea:setup.Cabal-1.22.6.0,
Euterpea:setup.Cabal-1.22.5.0, Euterpea:setup.Cabal-1.22.4.0,
Euterpea:setup.Cabal-1.22.3.0, Euterpea:setup.Cabal-1.22.2.0,
Euterpea:setup.Cabal-1.22.1.1, Euterpea:setup.Cabal-1.22.1.0,
Euterpea:setup.Cabal-1.22.0.0, Euterpea:setup.Cabal-1.20.0.4,
Euterpea:setup.Cabal-1.20.0.3, Euterpea:setup.Cabal-1.20.0.2,
Euterpea:setup.Cabal-1.20.0.1, Euterpea:setup.Cabal-1.20.0.0,
Euterpea:setup.Cabal-1.18.1.7, Euterpea:setup.Cabal-1.18.1.6,
Euterpea:setup.Cabal-1.18.1.5, Euterpea:setup.Cabal-1.18.1.4,
Euterpea:setup.Cabal-1.18.1.3, Euterpea:setup.Cabal-1.18.1.2,
Euterpea:setup.Cabal-1.18.1.1, Euterpea:setup.Cabal-1.18.1,
Euterpea:setup.Cabal-1.18.0, Euterpea:setup.Cabal-1.16.0.3,
Euterpea:setup.Cabal-1.16.0.2, Euterpea:setup.Cabal-1.16.0.1,
Euterpea:setup.Cabal-1.16.0, Euterpea:setup.Cabal-1.14.0,
Euterpea:setup.Cabal-1.12.0, Euterpea:setup.Cabal-1.10.2.0,
Euterpea:setup.Cabal-1.10.1.0, Euterpea:setup.Cabal-1.10.0.0,
Euterpea:setup.Cabal-1.8.0.6, Euterpea:setup.Cabal-1.8.0.4,
Euterpea:setup.Cabal-1.8.0.2, Euterpea:setup.Cabal-1.6.0.3,
Euterpea:setup.Cabal-1.6.0.2, Euterpea:setup.Cabal-1.6.0.1,
Euterpea:setup.Cabal-1.4.0.2, Euterpea:setup.Cabal-1.4.0.1,
Euterpea:setup.Cabal-1.4.0.0, Euterpea:setup.Cabal-1.2.4.0,
Euterpea:setup.Cabal-1.2.3.0, Euterpea:setup.Cabal-1.2.2.0,
Euterpea:setup.Cabal-1.2.1, Euterpea:setup.Cabal-1.1.6,
Euterpea:setup.Cabal-1.24.1.0 (constraint from minimum version of Cabal used
by Setup.hs requires >=2.4)
[__1] fail (backjumping, conflict set: Euterpea, Euterpea:setup.Cabal)
After searching the rest of the dependency tree exhaustively, these were the
goals I've had most trouble fulfilling: Euterpea:setup.Cabal, Euterpea
cabal --version
cabal-install version 3.0.0.0
compiled using version 3.0.0.0 of the cabal library
An update to something in HSoM's chain of dependencies now yields this when trying to run any MUI.
GLUT Fatal Error: internal error: NSInternalInconsistencyException, reason: nextEventMatchingMask should only be called from the Main Thread!
This happens from both ghci (which has always been buggy with MUIs) and also compiled executables. I am currently looking into solutions.
Using selectOutput in a MUI on some Macs with no available MIDI output devices can cause a non-exhaustive pattern matching error.
Temporary fix: make sure you have at least one MIDI output device like SimpleSynth running before you start a program using selectOutput.
src\Data\MarkovChain.hs:18:29: error:
Module Control.Monad.State' does not export
State(State)'
markov-chain versions after 0.0.2 will also not install.
Tested on Windows 10 and OSX 10.10.5
It seems that HSoM cannot be installed
$ cabal install
Resolving dependencies...
cabal: Could not resolve dependencies:
trying: HSoM-1.0.0 (user goal)
trying: StateVar-1.1.0.4/installed-5dJ... (dependency of
GLUT-2.7.0.12/installed-KMb...)
next goal: heap (dependency of HSoM-1.0.0)
rejecting: heap-0.6.0/installed-52d... (conflict: HSoM => heap>=1.0 && <2.0)
trying: heap-1.0.3
next goal: Euterpea (dependency of HSoM-1.0.0)
rejecting: Euterpea-2.0.2/installed-H2X... (conflict: heap==1.0.3, Euterpea =>
heap==0.6.0/installed-52d...)
rejecting: Euterpea-2.0.2, Euterpea-2.0.1, Euterpea-2.0.0 (conflict: StateVar
=> stm==2.4.4.1/installed-JQn..., Euterpea => stm==2.4.2)
rejecting: Euterpea-1.1.1, Euterpea-1.1.0, Euterpea-1.0.0 (conflict: HSoM =>
Euterpea>=2.0)
Backjump limit reached (currently 2000, change with --max-backjumps or try to
run with --reorder-goals).
--
cabal-install version 1.24.0.2
compiled using version 1.24.2.0 of the Cabal library
The Glorious Glasgow Haskell Compilation System, version 8.0.2
OS: macOS Sierra 10.12.5
Haskell Platform: 8.0.2 Full
I can't find this package available on hackage. I'm trying to install this.
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.