Implement getFileInfo to retrieve meta data
getFileInfo returns a record containing meta data about the given file, such as permissions, last modification time and time. We'll use this action to fill a neat status bar.
This commit is contained in:
parent
1de42395d4
commit
2ecde4fea5
3 changed files with 56 additions and 2 deletions
|
|
@ -18,6 +18,7 @@ extra-source-files:
|
|||
library
|
||||
exposed-modules:
|
||||
HCat
|
||||
HCat.FileInfo
|
||||
HCat.Internal
|
||||
other-modules:
|
||||
Paths_hcat
|
||||
|
|
@ -30,8 +31,10 @@ library
|
|||
ghc-options: -Wall -fdefer-typed-holes
|
||||
build-depends:
|
||||
base >=4.13 && <5
|
||||
, directory
|
||||
, process
|
||||
, text
|
||||
, time
|
||||
default-language: GHC2021
|
||||
|
||||
executable hcat
|
||||
|
|
@ -47,7 +50,9 @@ executable hcat
|
|||
ghc-options: -Wall -fdefer-typed-holes
|
||||
build-depends:
|
||||
base >=4.13 && <5
|
||||
, directory
|
||||
, hcat
|
||||
, time
|
||||
default-language: GHC2021
|
||||
|
||||
test-suite doctest
|
||||
|
|
@ -66,7 +71,9 @@ test-suite doctest
|
|||
doctest:doctest
|
||||
build-depends:
|
||||
base >=4.13 && <5
|
||||
, directory
|
||||
, process
|
||||
, time
|
||||
default-language: Haskell2010
|
||||
|
||||
test-suite spec
|
||||
|
|
@ -88,7 +95,9 @@ test-suite spec
|
|||
build-depends:
|
||||
QuickCheck
|
||||
, base >=4.13 && <5
|
||||
, directory
|
||||
, hcat
|
||||
, hspec
|
||||
, quickcheck-instances
|
||||
, time
|
||||
default-language: GHC2021
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue