blob: 3f80c04abbb50b0a13e3a11ad3387f35d2f0a7dd (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
{-# OPTIONS_GHC -XMonadComprehensions -XTransformListComp #-}
module Foo where
import Data.List
import GHC.Exts
foo = [ ()
| x <- [1..10]
, then take 5
, then sortWith by x
, then group by x
, then group using inits
, then group by x using groupWith
]
|