data-default icon indicating copy to clipboard operation
data-default copied to clipboard

A class for types with a default value

Results 15 data-default issues
Sort by recently updated
recently updated
newest added

I may be missing something, but as I see it the reason to split the original `data-default` into separate packages is to minimize dependencies. As both `data-default-class` and `data-default-instances-base` only...

``` {-# LANGUAGE DefaultSignatures #-} import Data.Monoid class Default a where def :: a default def :: Monoid a => a def = mempty ```

Do you personally use the (e -> r) instance? Do you know if anybody else does? I'm trying to define: ``` data Preference = Preference { userId :: UserId ,...

It would be useful to have a default for Proxy ```haskell instance Default (Proxy a) where def = Proxy ```