Comments (1)
It seems like defining a
Showable
class and writing instances forExpr
,
Type
andKind
might be the "proper" way to go?
Yes, that's how I usually do it.
Another theoretical benefit of this approach is that if there was another expression language typed with Type
, or another type language kinded with Kind
, then you would have reused for the show'
implementations rather than repeating in the cases.
That being said, I can definitely see the ergonomic usefulness of your GADT approach. If there was a TH generator for it then one would need to do less work in cases like these and it would make using the library easier. It's kind of a flattened version of HRecWitness
, and reminds me of join
too. It would definitely be useful to have :)
from hypertypes.
Related Issues (16)
- Make use of GADTs rather than TypeFamilies for nicer inference and type errors HOT 1
- README proofreading, and a question HOT 5
- Release tags HOT 1
- Type-class support MVP
- makeHNodes fails to generate constraints in some cases HOT 1
- Is it possible to get the latest version uploaded to Hackage please HOT 2
- Split up the package
- Would love a complete `Person` example :) HOT 4
- Please export `makeCommonInstances`
- makeHasHPlain work for more cases HOT 1
- A type class for node optics HOT 1
- Question: generalize Hyper.Class.Context.recursiveContexts?
- TH: Proper contexts for instances of co-recursive types HOT 1
- TH derivations stuck HOT 1
- the package is not on hackage HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from hypertypes.