1. Bryan O'Sullivan
  2. text


Bryan O'Sullivan  committed 242aea9

Remove a rewrite rule that makes GHC 7.4.1 ill

The effect of the rule was to make isPrefixOf infloop; see [GHC bug
5783](http://hackage.haskell.org/trac/ghc/ticket/5783) for details.

This fixes gh-16.

  • Participants
  • Parent commits e11de2c
  • Branches default

Comments (0)

Files changed (1)

File Data/Text.hs

View file
  • Ignore whitespace
 {-# RULES
 "TEXT isPrefixOf -> fused" [~1] forall s t.
     isPrefixOf s t = S.isPrefixOf (stream s) (stream t)
-"TEXT isPrefixOf -> unfused" [1] forall s t.
-    S.isPrefixOf (stream s) (stream t) = isPrefixOf s t
 -- | /O(n)/ The 'isSuffixOf' function takes two 'Text's and returns