File tree 1 file changed +5
-4
lines changed
1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change 4
4
5
5
module Main where
6
6
7
- import qualified Data.List as L (sortBy , group , sort )
7
+ import qualified Data.List as List (sortBy , sort )
8
+ import qualified Data.List.NonEmpty as List1 (group , head )
8
9
import Data.Char (isAscii , ord )
9
10
import Data.Function (on )
10
11
import Numeric (showHex )
@@ -27,9 +28,9 @@ main = do
27
28
nonAsciiChars <-
28
29
filter (not . isAscii) . T. unpack . T. concat <$> mapM readUTF8File agdaFiles
29
30
let table :: [(Char , Int )]
30
- table = L . sortBy (flip compare `on` snd ) $
31
- map (\ cs -> (head cs, length cs)) $
32
- L . group $ L . sort $ nonAsciiChars
31
+ table = List . sortBy (flip compare `on` snd ) $
32
+ map (\ cs -> (List1. head cs, length cs)) $
33
+ List1 . group $ List . sort $ nonAsciiChars
33
34
34
35
let codePoint :: Char -> T. Text
35
36
codePoint c = T. pack $ showHex (ord c) " "
You can’t perform that action at this time.
0 commit comments