haskus / haskus-manual Goto Github PK
View Code? Open in Web Editor NEWManual for Haskus software
Manual for Haskus software
Here,
newtype ConsF a e = ConsF a e deriving (Functor)
newtype NilF e = NilF deriving (Functor)
should use data
, not newtype
.
Otherwise:
* The constructor of a newtype must have exactly one field
but `ConsF' has two
A running file with all the source code would be useful.
Also, a list of all language extensions used would be useful.
I like the library very much and the documentation is a big help getting started. Huge thanks for that. While trying out some sample code from the docs, I have encountered some typecheck errors. One example is,
class MyShow e where
myShow :: e -> String
instance MyShow (NilF e) where
myShow _ = "Nil"
instance (MyShow e, Show a) => MyShow (ConsF a e) where
myShow (ConsF a l) = show a ++ " : " ++ myShow l
instance MyShow (f (EADT f)) => MyShow (EADT f) where
{-# INLINE myShow #-}
myShow (EADT e) = myShow e
The MyShow instance declaration for EADT throws errors.
src/Dep2.hs:172:26: error: …
• Expecting one more argument to ‘f’
Expected kind ‘[* -> *]’, but ‘f’ has kind ‘* -> *’
• In the first argument of ‘EADT’, namely ‘f’
In the first argument of ‘f’, namely ‘(EADT f)’
In the first argument of ‘MyShow’, namely ‘(f (EADT f))’
|
I am using haskus-utils-variant-3.1, haskus-utils-data-1.4, and haskus-utils-types-1.5. Wondering if the docs are in sync with the code.
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.