Skip to content

Commit 56c5d4c

Browse files
authored
Merge branch 'master' into wip/bump-base
2 parents 7cb3dc2 + 9b85e73 commit 56c5d4c

File tree

9 files changed

+25
-24
lines changed

9 files changed

+25
-24
lines changed

.ghci

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,10 @@
44
import qualified System.FilePath.Windows as W
55
import qualified System.FilePath.Posix as P
66

7-
:def docs_ const $ return ":!cabal haddock"
8-
:def docs const $ return $ unlines [":docs_",":!start dist\\doc\\html\\filepath\\System-FilePath.html"]
7+
:def docs_ const $ pure ":!cabal haddock"
8+
:def docs const $ pure $ unlines [":docs_",":!start dist\\doc\\html\\filepath\\System-FilePath.html"]
99

10-
:def gen const $ return "Generate.main"
11-
:def test \x -> return $ if null x then "Test.main" else "System.Environment.withArgs [" ++ show x ++ "] Test.main"
12-
:def go \x -> return $ unlines [":reload",":gen",":reload",":test " ++ x,":gen",":reload"]
13-
:def testfull const $ return $ unlines [":reload","gen",":reload","!cabal test"]
10+
:def gen const $ pure "Generate.main"
11+
:def test \x -> pure $ if null x then "Test.main" else "System.Environment.withArgs [" ++ show x ++ "] Test.main"
12+
:def go \x -> pure $ unlines [":reload",":gen",":reload",":test " ++ x,":gen",":reload"]
13+
:def testfull const $ pure $ unlines [":reload","gen",":reload","!cabal test"]

.hlint.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,3 +7,9 @@
77

88
# We use [Char] because sometimes we really are talking about a set of Char.
99
- ignore: {name: "Use String"}
10+
11+
# We don't use the extra library
12+
- ignore: {name: "Use drop1"}
13+
- ignore: {name: "Use upper"}
14+
- ignore: {name: "Use lower"}
15+
- ignore: {name: "Use zipFrom"}

.travis.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
1-
sudo: required
1+
language: minimal
22
env:
3-
- GHCVER=7.10
43
- GHCVER=8.0
54
- GHCVER=8.2
65
- GHCVER=8.4
76
- GHCVER=8.6
7+
- GHCVER=8.8
8+
- GHCVER=8.10
89
- GHCVER=head
910

1011
script:

Generate.hs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -100,11 +100,11 @@ readFileBinary' :: FilePath -> IO String
100100
readFileBinary' file = withBinaryFile file ReadMode $ \h -> do
101101
s <- hGetContents h
102102
evaluate $ length s
103-
return s
103+
pure s
104104

105105
writeFileBinaryChanged :: FilePath -> String -> IO ()
106106
writeFileBinaryChanged file x = do
107107
b <- doesFileExist file
108-
old <- if b then fmap Just $ readFileBinary' file else return Nothing
108+
old <- if b then fmap Just $ readFileBinary' file else pure Nothing
109109
when (Just x /= old) $
110110
writeFileBinary file x

LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
Copyright Neil Mitchell 2005-2019.
1+
Copyright Neil Mitchell 2005-2020.
22
All rights reserved.
33

44
Redistribution and use in source and binary forms, with or without

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# FilePath [![Hackage version](https://img.shields.io/hackage/v/filepath.svg?label=Hackage)](https://hackage.haskell.org/package/filepath) [![Linux Build Status](https://img.shields.io/travis/haskell/filepath/master.svg?label=Linux%20build)](https://travis-ci.org/haskell/filepath) [![Windows Build Status](https://img.shields.io/appveyor/ci/ndmitchell/filepath/master.svg?label=Windows%20build)](https://ci.appveyor.com/project/ndmitchell/filepath)
1+
# FilePath [![Hackage version](https://img.shields.io/hackage/v/filepath.svg?label=Hackage)](https://hackage.haskell.org/package/filepath) [![Linux build status](https://img.shields.io/travis/haskell/filepath/master.svg?label=Linux%20build)](https://travis-ci.org/haskell/filepath) [![Windows build status](https://img.shields.io/appveyor/ci/ndmitchell/filepath/master.svg?label=Windows%20build)](https://ci.appveyor.com/project/ndmitchell/filepath)
22

33
The `filepath` package provides functionality for manipulating `FilePath` values, and is shipped with both [GHC](https://www.haskell.org/ghc/) and the [Haskell Platform](https://www.haskell.org/platform/). It provides three modules:
44

appveyor.yml

Lines changed: 0 additions & 6 deletions
This file was deleted.

filepath.cabal

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,13 @@ license: BSD3
66
license-file: LICENSE
77
author: Neil Mitchell <[email protected]>
88
maintainer: Neil Mitchell <[email protected]>
9-
copyright: Neil Mitchell 2005-2019
9+
copyright: Neil Mitchell 2005-2020
1010
bug-reports: https://github.com/haskell/filepath/issues
1111
homepage: https://github.com/haskell/filepath#readme
1212
category: System
1313
build-type: Simple
1414
synopsis: Library for manipulating FilePaths in a cross platform way.
15-
tested-with: GHC==8.6.4, GHC==8.4.4, GHC==8.2.2, GHC==8.0.2, GHC==7.10.3
15+
tested-with: GHC==8.10.1, GHC==8.8.3, GHC==8.6.5, GHC==8.4.4, GHC==8.2.2, GHC==8.0.2
1616
description:
1717
This package provides functionality for manipulating @FilePath@ values, and is shipped with both <https://www.haskell.org/ghc/ GHC> and the <https://www.haskell.org/platform/ Haskell Platform>. It provides three modules:
1818
.
@@ -48,7 +48,7 @@ library
4848
System.FilePath.Windows
4949

5050
build-depends:
51-
base >= 4 && < 4.16
51+
base >= 4.9 && < 4.16
5252

5353
ghc-options: -Wall
5454

@@ -64,4 +64,4 @@ test-suite filepath-tests
6464
build-depends:
6565
filepath,
6666
base,
67-
QuickCheck >= 2.7 && < 2.13
67+
QuickCheck >= 2.7 && < 2.14

tests/Test.hs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,8 @@ main = do
1919
putStrLn $ "Test " ++ show i ++ " of " ++ show total ++ ": " ++ msg
2020
res <- quickCheckWithResult stdArgs{chatty=False, maxSuccess=count} prop
2121
case res of
22-
Success{} -> return Nothing
23-
bad -> do putStrLn $ showOutput bad; putStrLn "TEST FAILURE!"; return $ Just (msg,bad)
22+
Success{} -> pure Nothing
23+
bad -> do putStrLn $ showOutput bad; putStrLn "TEST FAILURE!"; pure $ Just (msg,bad)
2424
if null bad then
2525
putStrLn $ "Success, " ++ show total ++ " tests passed"
2626
else do

0 commit comments

Comments
 (0)