acme-default-0.1.0: A class for types with a distinguished aesthetically pleasing value

CopyrightCopyright 2016 Ertugrul Söylemez
LicenseApache License 2.0
MaintainerErtugrul Söylemez <esz@posteo.de>
Safe HaskellSafe
LanguageHaskell2010

Data.Default

Contents

Description

This module defines a class for types with a distinguished value that someone considers aesthetically pleasing. If you would like your favourite value featured as the default in the next release, become that someone now! Just create an issue on the issue tracker!

Synopsis

Default class

class Default a where Source #

A class for types with a distinguished value that someone considers aesthetically pleasing.

Minimal complete definition

def

Methods

def :: a Source #

The currently selected default value.

Instances

Default Bool Source #

Current default False chosen by ertes, the answer to the question whether mniip has a favourite Bool.

Methods

def :: Bool Source #

Default Char Source #

Current default '→' chosen by sleblanc`, because arrows look fancy when you use them in a chat.

Methods

def :: Char Source #

Default Double Source #

Current default 1.1102230246251565e-16 chosen by ertes, the difference between 1 and sum (replicate 10 0.1).

Methods

def :: Double Source #

Default Float Source #

Current default 388.38 chosen by ertes, because it's beautiful in decimal and approximately equal to twice the molar mass of caffeine in grams per mol.

Methods

def :: Float Source #

Default Int Source #

Current default 18871 chosen by ertes, a beautiful product of a Sophie-Germain prime and a safe prime.

Methods

def :: Int Source #

Default Int8 Source #

Current default 29 chosen by ertes for obvious reasons.

Methods

def :: Int8 Source #

Default Int16 Source #

Current default -99 chosen by ertes, the largest prime that generates a multiplicative subgroup of maximal order modulo 2^16.

Methods

def :: Int16 Source #

Default Int64 Source #

Current default -1 chosen by ertes, the largest negative number.

Methods

def :: Int64 Source #

Default Integer Source #

Current default is Graham's number G chosen by ertes.

Methods

def :: Integer Source #

Default Word Source #

Current default 10 chosen by ertes, the fifth triangular number that also happens to be the base of the most common positional notation in use for numbers.

Methods

def :: Word Source #

Default Word8 Source #

Current default 216 chosen by ertes, the volume of the largest cube with integer side length.

Methods

def :: Word8 Source #

Default Word16 Source #

Current default 6 chosen by ertes, the smallest perfect number.

Methods

def :: Word16 Source #

Default Word32 Source #

Current default 4294967296 chosen by Axman6 and mniip, because it's equal to 0.

Methods

def :: Word32 Source #

Default Word64 Source #

Current default 17 chosen by ertes. It just looks nice in decimal when written with serifs on the first digit.

Methods

def :: Word64 Source #

Default () Source #

Current default def chosen by ertes for the same reason as the instance for ().

Methods

def :: () Source #

Default a => Default [a] Source #

Current default replicate 4 def chosen by mniip, because 4 is a random number.

Methods

def :: [a] Source #

(Default a, Default b) => Default (a, b) Source # 

Methods

def :: (a, b) Source #

(Default a, Default b, Default c) => Default (a, b, c) Source # 

Methods

def :: (a, b, c) Source #

(Default a, Default b, Default c, Default d, Default e) => Default (a, b, c, d, e) Source # 

Methods

def :: (a, b, c, d, e) Source #

(Default a, Default b, Default c, Default d, Default e, Default f) => Default (a, b, c, d, e, f) Source # 

Methods

def :: (a, b, c, d, e, f) Source #