General purpose bi-directional codecs.
bower install purescript-codec
Module documentation is published on Pursuit.
General purpose bi-directional codecs
License: MIT License
General purpose bi-directional codecs.
bower install purescript-codec
Module documentation is published on Pursuit.
How is this meant to be used? A description or example would be great to add to the docs or README.
Although codec is a library that exists in Haskell and was the library on which this one is based, it seems like it's author has stopped working on the library.
I'd like to port this library to Haskell. Then, I can create a server that uses that ported library to serialize things and hopefully play with with this library on the PS side of things.
However, you don't have a license, so I feel like doing anything like that wouldn't end well until it's clarified.
I have been learning Purescript recently and I have a question if you have some time to entertain me ๐
I was implementing a toy project and before I discovered this package, I created a type class that served as a Codec
definition, defining encode
and decode
functions.
class Codec a b e where
encode :: a -> b
decode :: b -> Either e a
I then create an instance of this Codec for each of the types in my domain.
Comparing my implementation to yours, I'm curious about why Codec
is implemented as a type
in this module rather than a type class?
PS: I know this is probably not the right place for this, let me know if there is a better place to ask such questions.
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.