Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make it compilable with GHC HEAD (v7.9) #1

Merged
merged 1 commit into from
Jun 12, 2014
Merged

Make it compilable with GHC HEAD (v7.9) #1

merged 1 commit into from
Jun 12, 2014

Conversation

ggreif
Copy link
Contributor

@ggreif ggreif commented Jun 12, 2014

See ghc bug #8883 and related discussion http://www.haskell.org/pipermail/ghc-devs/2014-June/005180.html

This is the error that GHC emits:

src/Physics/ForceLayout.hs:148:9:
    Illegal equational constraint Scalar b ~ Scalar v
    (Use GADTs or TypeFamilies to permit this)
    In the context: (VectorSpace b, Scalar b ~ Scalar v)
    While checking the inferred type for ?stepVel?
    In an equation for ?particleStep?:
        particleStep d
          = stepPos . stepVel
          where
              stepVel p = vel .~ (d *^ (p ^. vel ^+^ p ^. force)) $ p
              stepPos p = pos %~ (.+^ p ^. vel) $ p

Btw. as of today this message will become explained even better.

byorgey added a commit that referenced this pull request Jun 12, 2014
Make it compilable with GHC HEAD (v7.9)
@byorgey byorgey merged commit a2c3990 into diagrams:master Jun 12, 2014
@ggreif ggreif deleted the patch-1 branch June 12, 2014 11:20
@byorgey
Copy link
Member

byorgey commented Jun 12, 2014

Thanks! Released as force-layout-0.3.0.5.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants