Git Product home page Git Product logo

Comments (4)

cartazio avatar cartazio commented on August 24, 2024 1

On the flip side it does make compiling the examples wayyyy faster :)

from concat.

cartazio avatar cartazio commented on August 24, 2024

Is there a way I can help?

from concat.

conal avatar conal commented on August 24, 2024

Thanks to help from @kosmikus, I found the problem here.

In ConCat.Plugin from pull #37:

isMonoTy :: Type -> Bool
isMonoTy (TyConApp _ tys)      = all isMonoTy tys
isMonoTy (AppTy u v)           = isMonoTy u && isMonoTy v
#if MIN_VERSION_GLASGOW_HASKELL(8,2,0,0)

#else
isMonoTy (ForAllTy (Anon u) v) = isMonoTy u && isMonoTy v
#endif
isMonoTy (LitTy _)             = True
isMonoTy _                     = False

The omitted test handles function types, which are the only types given as an argument to toCcc'. The isMonoTy thus always yields False, and so the rewriting fails every time.

I made a very simple fix: use the FunTy pattern synonym regardless of GHC version. The new definition:

isMonoTy :: Type -> Bool
isMonoTy (TyConApp _ tys) = all isMonoTy tys
isMonoTy (AppTy u v)      = isMonoTy u && isMonoTy v
isMonoTy (FunTy u v)      = isMonoTy u && isMonoTy v
isMonoTy (LitTy _)        = True
isMonoTy _                = False

This change fixes the immediate issue with 8.2.2. I'll open another issue for the next breakage.

from concat.

cartazio avatar cartazio commented on August 24, 2024

from concat.

Related Issues (20)

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.