1module Main ( main ) where
4import Control.Exception
5import Data.Set ( empty )
6import Distribution.Nixpkgs.License
7import Distribution.Nixpkgs.Meta
13 describe "DeepSeq instances work properly for" $ do
14 it "License" $ mapM_ hitsBottom [Known undefined, Unknown (Just undefined)]
15 it "Meta" $ do let meta = Meta "" "" (Unknown Nothing) empty empty empty False
17 [ meta { homepage = undefined }
18 , meta { description = undefined }
19 , meta { license = undefined }
20 , meta { platforms = undefined }
21 , meta { maintainers = undefined }
22 , meta { broken = undefined }
25hitsBottom :: NFData a => a -> Expectation
26hitsBottom x = evaluate (rnf x) `shouldThrow` anyErrorCall
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