1{-# LANGUAGE DataKinds #-}
2{-# LANGUAGE DeriveGeneric #-}
3{-# LANGUAGE DuplicateRecordFields #-}
4{-# LANGUAGE FlexibleContexts #-}
5{-# LANGUAGE TypeApplications #-}
6{-# LANGUAGE UndecidableInstances #-}
11import Data.Generics.Record
12import Data.Generics.Product
20 } deriving (Show, Generic)
23human = Human { name = "Tunyasz", age = 10, address = "London", eats = "Bread" }
29 } deriving (Show, Generic)
31growUp :: Animal -> Animal
32growUp (Animal name age _) = Animal name (age + 10) "raw meat"
34data WildAnimal = WildAnimal
39 } deriving (Show, Generic)
41raiseByWolves :: Human -> Human
42raiseByWolves human = human & super %~ growUp
keysesc to close
- j k
- move down, up
- enter
- open
- esc
- back, or up a level
- 1 2 3 4
- readme, files, commits, refs
- /
- filter
- y
- copy the clone command
- c
- compare the chosen commit with another (or shift-click both)
- ?
- show or hide this list