packages feed

file-io 0.1.0.0 → 0.1.0.1

raw patch · 3 files changed

+36/−34 lines, 3 filesdep ~basedep ~filepathPVP ok

version bump matches the API change (PVP)

Dependency ranges changed: base, filepath

API changes (from Hackage documentation)

Files

CHANGELOG.md view
@@ -1,5 +1,9 @@ # Revision history for file-io +## 0.1.0.1 -- YYYY-mm-dd++* Don't use creat flag when only reading files+ ## 0.1.0.0 -- YYYY-mm-dd  * First version. Released on an unsuspecting world.
System/File/Posix.hs view
@@ -13,12 +13,12 @@ openFile :: PosixPath -> IOMode -> IO Handle openFile fp iomode = fdToHandle =<< case iomode of   ReadMode      -> open ReadOnly  df-  WriteMode     -> open WriteOnly df { trunc = True }-  AppendMode    -> open WriteOnly df { append = True }-  ReadWriteMode -> open ReadWrite df+  WriteMode     -> open WriteOnly df { trunc = True, creat = Just 0o666 }+  AppendMode    -> open WriteOnly df { append = True, creat = Just 0o666 }+  ReadWriteMode -> open ReadWrite df { creat = Just 0o666 }  where   open = openFd fp-  df = defaultFileFlags { noctty = True, nonBlock = True, creat = Just 0o666 }+  df = defaultFileFlags { noctty = True, nonBlock = True }  -- | Open an existing file and return the 'Handle'. openExistingFile :: PosixPath -> IOMode -> IO Handle
file-io.cabal view
@@ -1,43 +1,41 @@ cabal-version:      2.4 name:               file-io-version:            0.1.0.0--synopsis: Basic file IO operations via 'OsPath'--description: Basic file IO operations like Prelude, but for 'OsPath'.---- A URL where users can report bugs.--- bug-reports:---- The license under which the package is released.+version:            0.1.0.1+synopsis:           Basic file IO operations via 'OsPath'+description:        Basic file IO operations like Prelude, but for 'OsPath'.+homepage:           https://github.com/hasufell/file-io+bug-reports:        https://github.com/hasufell/file-io/issues license:            BSD-3-Clause author:             Julian Ospald maintainer:         hasufell@posteo.de- copyright:          Julian Ospald 2022 category:           System-extra-source-files: CHANGELOG.md-                    System/File/Common.hs+extra-source-files:+  CHANGELOG.md+  System/File/Common.hs +source-repository head+  type:     git+  location: https://github.com/hasufell/file-io.git+ library-    default-language: Haskell2010+  default-language: Haskell2010 -    if os(windows)-        other-modules:-            System.File.Windows-        build-depends: Win32 >= 2.13.3.0-    else-        other-modules:-            System.File.Posix-        build-depends: unix >= 2.8.0.0+  if os(windows)+    other-modules: System.File.Windows+    build-depends: Win32 >=2.13.3.0 -    build-depends:-        base        >= 4.10    && < 4.17,-        bytestring  >=0.11.3.0,-        filepath    >= 1.4.100.0+  else+    other-modules: System.File.Posix+    build-depends: unix >=2.8.0.0 -    exposed-modules:-        System.File.OsPath-        System.File.PlatformPath+  build-depends:+    , base        >=4.10      && <4.17+    , bytestring  >=0.11.3.0+    , filepath    >=1.4.100.0 -    ghc-options: -Wall+  exposed-modules:+    System.File.OsPath+    System.File.PlatformPath++  ghc-options:      -Wall