A collection of type-level operators
See Hackage for documentation.
A collection of type-level operators
License: BSD 3-Clause "New" or "Revised" License
A collection of type-level operators
See Hackage for documentation.
$ cabal build
...
Build profile: -w ghc-9.4.4 -O1
...
Building library for type-operators-0.2.0.0..
[1 of 1] Compiling Control.Type.Operator ( Control/Type/Operator.hs, /Users/abel/tmp/type-operators-0.2.0.0/dist-newstyle/build/x86_64-osx/ghc-9.4.4/type-operators-0.2.0.0/build/Control/Type/Operator.o, /Users/abel/tmp/type-operators-0.2.0.0/dist-newstyle/build/x86_64-osx/ghc-9.4.4/type-operators-0.2.0.0/build/Control/Type/Operator.dyn_o )
Control/Type/Operator.hs:97:15: error:
Conflicting family instance declarations:
[] <+> _ = () :: Constraint
-- Defined at Control/Type/Operator.hs:97:15
forall {k} {c :: k -> Constraint} {a :: k} {as :: [k]}.
c <+> (a : as) = (c a, c <+> as)
-- Defined at Control/Type/Operator.hs:99:15
|
97 | type instance (<+>) [] _ = (() :: Constraint)
| ^^^^^
Lifted from:
In my role as Hackage Trustee, I restricted base
to <4.17
on hackage: https://hackage.haskell.org/package/type-operators-0.2.0.0/revisions/
Hi,
<+>
type operator need a fix. In GHC 8.10 and GHC 9.2.4:
Definition is compiled, but function invocation gives a type error:
sp :: Show <+> [a, b] => a -> b -> String ; sp a b = show a <> show b
> sp () ()
<interactive>:35:1: error:
• Could not deduce: Show <+> '[] arising from a use of ‘sp’
• In the expression: sp () ()
In an equation for ‘it’: it = sp () ()
Extending type family with follow member solve the problem:
type instance (<+>) _ '[] = (() :: Constraint)
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.