1module Main (main) where
3import Data.Word (Word8)
4import qualified Data.Attoparsec.FastSet as F
5import System.Random (Random(..), RandomGen)
8integralRandomR :: (Integral a, RandomGen g) => (a, a) -> g -> (a, g)
9integralRandomR (a,b) g = case randomR (fromIntegral a :: Int,
10 fromIntegral b :: Int) g
11 of (x,g') -> (fromIntegral x, g')
13instance Random Word8 where
14 randomR = integralRandomR
15 random = randomR (minBound,maxBound)
17instance Arbitrary Word8 where
18 arbitrary = choose (minBound, maxBound)
21 let set = F.fromList s
22 in all (`F.memberWord8` set) s
25 quickCheck prop_AllMembers
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