Git Product home page Git Product logo

follow-file's People

Contributors

athanclark avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  avatar

follow-file's Issues

fails to build with ghc-9.6

       Building library for follow-file-0.0.3..                                                                          [27/167012]       [2 of 2] Compiling System.File.Follow                                                                                        
                                                                  
       /var/stackage/work/unpack-dir/unpacked/follow-file-0.0.3-b22c2f8525f0bb26ca3286d6b34ff39056776896ce3be087a2817965fbe9172d/src
/System/File/Follow.hs:51:31: error: [GHC-83865]                                                                                    
           • Couldn't match expected type: unix-2.8.1.0:System.Posix.IO.Common.OpenFileFlags
                                           -> IO System.Posix.Types.Fd
                         with actual type: IO System.Posix.Types.Fd
           • The function ‘openFd’ is applied to four value arguments,
               but its type ‘RawFilePath
                             -> OpenMode                                                                                                                         -> unix-2.8.1.0:System.Posix.IO.Common.OpenFileFlags
                             -> IO System.Posix.Types.Fd’
               has only three                                     
             In the second argument of ‘($)’, namely                                                                                
               ‘openFd (BS8.fromString file') ReadOnly Nothing defaultFileFlags’
             In the first argument of ‘bracket’, namely                                                                             
               ‘(liftIO                                           
                   $ openFd (BS8.fromString file') ReadOnly Nothing defaultFileFlags)’
          |                                                                                                                         
       51 |   let go  = bracket (liftIO $ openFd (BS8.fromString file') ReadOnly Nothing defaultFileFlags)
          |                               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
                                                                                                                                           /var/stackage/work/unpack-dir/unpacked/follow-file-0.0.3-b22c2f8525f0bb26ca3286d6b34ff39056776896ce3be087a2817965fbe9172d/src
/System/File/Follow.hs:51:70: error: [GHC-83865]
           • Couldn't match expected type ‘unix-2.8.1.0:System.Posix.IO.Common.OpenFileFlags’
                         with actual type ‘Maybe a0’
           • In the third argument of ‘openFd’, namely ‘Nothing’
             In the second argument of ‘($)’, namely
               ‘openFd (BS8.fromString file') ReadOnly Nothing defaultFileFlags’
             In the first argument of ‘bracket’, namely
               ‘(liftIO
                   $ openFd (BS8.fromString file') ReadOnly Nothing defaultFileFlags)’
          |
       51 |   let go  = bracket (liftIO $ openFd (BS8.fromString file') ReadOnly Nothing defaultFileFlags)
          |                                                                      ^^^^^^^

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.