[Haskell-cafe] clonetype

Alex Silva asandroq at gmail.com
Mon Sep 24 11:18:10 UTC 2018


Hi,

On 24/09/18 12:42, Harendra Kumar wrote:
> 
> and we are good to go.  What is the shortest possible way to achieve
> this with currently available mechanisms, if any?
> 

What about GeneralizedNewtypeDeriving[1]?

[1]
https://downloads.haskell.org/~ghc/latest/docs/html/users_guide/glasgow_exts.html#generalised-derived-instances-for-newtypes

Cheers,
-- 
-alex
https://unendli.ch/


More information about the Haskell-Cafe mailing list