File tree Expand file tree Collapse file tree 3 files changed +4
-8
lines changed
test/Unicode/Char/Identifiers
unicode-data/lib/Unicode/Char/General Expand file tree Collapse file tree 3 files changed +4
-8
lines changed Original file line number Diff line number Diff line change @@ -26,12 +26,12 @@ main = defaultMain
2626 ]
2727 , bgroup " Confusables"
2828 [ bgroup' " confusablePrototype"
29- [ Bench " CString" (\ c -> Ptr ( Confusables. confusablePrototype c) )
29+ [ Bench " CString" (Ptr . Confusables. confusablePrototype)
3030 , Bench " String" Security. confusablePrototype
3131 ]
3232 -- , benchNF "prototype" Security.prototype
3333 , bgroup' " intentionalConfusables"
34- [ Bench " CString" (\ c -> Ptr ( Confusables. intentionalConfusables c) )
34+ [ Bench " CString" (Ptr . Confusables. intentionalConfusables)
3535 , Bench " String" Security. intentionalConfusables
3636 ]
3737 , benchNF " isIntentionallyConfusable" Security. intentionalConfusables
Original file line number Diff line number Diff line change @@ -60,6 +60,6 @@ spec = do
6060 -- [TODO] more invariants
6161 traverse_ check (enumFromTo minBound maxBound )
6262 it " Identifier status is consistent with identifier types" do
63- let checkChar c = all (== isAllowedInIdentifier c)
64- (isIdentifierTypeAllowed <$> identifierTypes c)
63+ let checkChar c = all (( == isAllowedInIdentifier c) . isIdentifierTypeAllowed )
64+ (identifierTypes c)
6565 traverse_ (`shouldSatisfy` checkChar) (enumFromTo minBound maxBound )
Original file line number Diff line number Diff line change 1- {-# LANGUAGE PatternSynonyms #-}
2- {-# LANGUAGE ViewPatterns #-}
3- {-# LANGUAGE DeriveGeneric #-}
4-
51-- |
62-- Module : Unicode.Char.General.Blocks
73-- Copyright : (c) 2020 Composewell Technologies and Contributors
You can’t perform that action at this time.
0 commit comments