При задании правил, по идее, можно указать этапы компиляции, на которых они будут срабатывать.
The "[2]" means that the rule is active in Phase 2 and subsequent phases. The inverse notation "[~2]" is also accepted, meaning that the rule is active up to, but not including, Phase 2.
Comments 6
При задании правил, по идее, можно указать этапы компиляции, на которых они будут срабатывать.
The "[2]" means that the rule is active in Phase 2 and subsequent phases. The inverse notation "[~2]" is also accepted, meaning that the rule is active up to, but not including, Phase 2.
http://www.haskell.org/ghc/docs/6.8.2/html/users_guide/rewrite-rules.html
Reply
Reply
Reply
Reply
Reply
Написал свой
{-# INLINE myDigit #-}
myDigit :: Parsec BS.ByteString () Char
myDigit = satisfy isDigit -- "digit"
так инлайнится, а заменю () на u - нет. Имеется в виду тип
myDigit :: Parsec BS.ByteString u Char
Reply
Leave a comment