Craft3e-0.2.0.1: Code for Haskell: the Craft of Functional Programming, 3rd ed.
Safe HaskellSafe-Inferred
LanguageHaskell2010

Chapter5

Synopsis

Documentation

type ShopItem = (String, Int) Source #

^^^^^^^^^^^^^^^^^^^^^^^^^^^

^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

basket3 :: Basket Source #

^^^^^^^^^^

fibTwoStep :: Integer -> Integer -> (Integer, Integer) Source #

^^^^^^^^^^^^^^^^^^^^^^^^^^

^^^^^^^^^^^^

data People Source #

Constructors

Person Name Age 

type Age = Int Source #

data NewAge Source #

^^^^^^^^^^^

Constructors

Years Int 

data Shape Source #

Instances

Instances details
Info Shape Source # 
Instance details

Defined in Chapter13

Read Shape Source # 
Instance details

Defined in Chapter5

Show Shape Source # 
Instance details

Defined in Chapter5

Methods

showsPrec :: Int -> Shape -> ShowS #

show :: Shape -> String #

showList :: [Shape] -> ShowS #

Eq Shape Source # 
Instance details

Defined in Chapter5

Methods

(==) :: Shape -> Shape -> Bool #

(/=) :: Shape -> Shape -> Bool #

Ord Shape Source # 
Instance details

Defined in Chapter5

Methods

compare :: Shape -> Shape -> Ordering #

(<) :: Shape -> Shape -> Bool #

(<=) :: Shape -> Shape -> Bool #

(>) :: Shape -> Shape -> Bool #

(>=) :: Shape -> Shape -> Bool #

max :: Shape -> Shape -> Shape #

min :: Shape -> Shape -> Shape #

area :: Shape -> Float Source #

^^^^^^^^^^^^^^^

list12 :: String Source #

^^^^^^^^^^^^^^^^^^ Examples of list comprehensions

sings :: [[Integer]] -> [Integer] Source #

^^^^^^^^^^^^^^^^^