Skip to content

Commit

Permalink
Merge pull request #4612 from psibi/test-mutable-deps
Browse files Browse the repository at this point in the history
Fix integration test for mutable-deps
  • Loading branch information
snoyberg authored Mar 7, 2019
2 parents 1badd6e + 2c5e236 commit 311b6f8
Showing 1 changed file with 2 additions and 4 deletions.
Original file line number Diff line number Diff line change
@@ -1,7 +1,3 @@
{-# ANN module "HLint: ignore" #-}
#if __GLASGOW_HASKELL__ >= 704
{-# LANGUAGE Safe #-}
#endif
{-# LANGUAGE PatternGuards #-}

-- This template expects CPP definitions for:
Expand Down Expand Up @@ -147,6 +143,7 @@ pathSeparator = if isWindows then '\\' else '/'
-- > Windows: pathSeparators == ['\\', '/']
-- > Posix: pathSeparators == ['/']
-- > pathSeparator `elem` pathSeparators
{-# ANN pathSeparators "HLint: ignore" #-}
pathSeparators :: [Char]
pathSeparators = if isWindows then "\\/" else "/"

Expand Down Expand Up @@ -1026,5 +1023,6 @@ breakEnd p = spanEnd (not . p)
-- | The stripSuffix function drops the given suffix from a list. It returns
-- Nothing if the list did not end with the suffix given, or Just the list
-- before the suffix, if it does.
{-# ANN stripSuffix "HLint: ignore" #-}
stripSuffix :: Eq a => [a] -> [a] -> Maybe [a]
stripSuffix xs ys = fmap reverse $ stripPrefix (reverse xs) (reverse ys)

0 comments on commit 311b6f8

Please sign in to comment.