SEARCH
NEW RPMS
DIRECTORIES
ABOUT
FAQ
VARIOUS
BLOG

 
 

ghc-directory-tree rpm build for : OpenSuSE. For other distributions click ghc-directory-tree.

Name : ghc-directory-tree
Version : 0.12.1 Vendor : openSUSE
Release : bp150.2.6 Date : 2018-07-30 20:23:15
Group : Development/Libraries/Haskell Source RPM : ghc-directory-tree-0.12.1-bp150.2.6.src.rpm
Size : 0.12 MB
Packager : https://bugs_opensuse_org
Summary : A simple directory-like tree datatype, with useful IO functions
Description :
A simple directory-like tree datatype, with useful IO functions and Foldable
and Traversable instance

Provides a simple data structure mirroring a directory tree on the filesystem,
as well as useful functions for reading and writing file and directory
structures in the IO monad.

Importing the library and optional (useful) Foldable and Traverable libraries:

> import System.Directory.Tree > import qualified Data.Foldable as F > import
qualified Data.Traversable as T

Write a hand-made directory tree of textfiles (strings) to the disk.
Simulates creating a new user Tux\'s home directory on a unix machine:

> writeDirectory$ \"/home\" :/ Dir \"Tux\" [File \"README\" \"Welcome!\"]

\"read\" a directory by opening all the files at a filepath with readFile,
returning an \'AnchoredDirTree String\' (d2). Then check for any IO failures:

> do (base :/ d2) < - readDirectory \"../parent_dir/dir2/\" > let failed =
anyFailed d2 > if failed then ...

Use Foldable instance function to concat a directory \'dir\' of text files into a
single file under the same directory:

> do (b :/ dt) < - readDirectory dir > let f = F.concat dt > return$ b :/ File
\"ALL_TEXT\" f

Open all the files in the current directory as lazy bytestrings, ignoring the
base path in Anchored wrapper:

> import qualified Data.ByteString.Lazy as B > do (_ :/ dTree) < -
readDirectoryWith B.readFile \"./\"

This version also offers an experimental function `readDirectoryWithL` that
does lazy directory IO, allowing you to treat the returned `DirTree` as if it
were a normal lazily-generated data structure.

For example, the following does only the amount of IO necessary to list the
file names of the children of the root directory, similar to \"ls /\":

> do d < - readDirectoryWithL readFile \"/\" > mapM_ (putStrLn . name) $ contents
$ free d

Any ideas or suggestions for improvements are most welcome :-)

/CHANGES/: from 0.11

- export \'System.Directory.Tree.transformDir\' as requested

- add test suite to cabal file

- remove redundant \'removeNonexistent\' (thanks to dmwit for patch) .

RPM found in directory: /packages/linux-pbone/ftp5.gwdg.de/pub/opensuse/repositories/openSUSE:/Backports:/SLE-15/standard/x86_64

Content of RPM  Changelog  Provides Requires

Download
ftp.icm.edu.pl  ghc-directory-tree-0.12.1-bp150.2.6.x86_64.rpm
     

Provides :
ghc-directory-tree
ghc-directory-tree(x86-64)
libHSdirectory-tree-0.12.1-F74f4vw9rDMAu5Sxq2Dihf-ghc8.0.2.so()(64bit)

Requires :
libHSarray-0.5.1.1-ghc8.0.2.so()(64bit)
libHSbase-4.9.1.0-ghc8.0.2.so()(64bit)
libHSbytestring-0.10.8.1-ghc8.0.2.so()(64bit)
libHSdeepseq-1.4.2.0-ghc8.0.2.so()(64bit)
libHSdirectory-1.3.0.0-ghc8.0.2.so()(64bit)
libHSfilepath-1.4.1.1-ghc8.0.2.so()(64bit)
libHSghc-prim-0.5.0.0-ghc8.0.2.so()(64bit)
libHSinteger-gmp-1.0.0.1-ghc8.0.2.so()(64bit)
libHStime-1.6.0.1-ghc8.0.2.so()(64bit)
libHSunix-2.7.2.1-ghc8.0.2.so()(64bit)
libc.so.6()(64bit)
libc.so.6(GLIBC_2.2.5)(64bit)
libdl.so.2()(64bit)
libgmp.so.10()(64bit)
libpthread.so.0()(64bit)
librt.so.1()(64bit)
libutil.so.1()(64bit)
rpmlib(CompressedFileNames) <= 3.0.4-1
rpmlib(FileDigests) <= 4.6.0-1
rpmlib(PayloadFilesHavePrefix) <= 4.0-1
rpmlib(PayloadIsXz) <= 5.2-1


Content of RPM :
/usr/lib64/ghc-8.0.2/directory-tree-0.12.1-F74f4vw9rDMAu5Sxq2Dihf
/usr/lib64/ghc-8.0.2/directory-tree-0.12.1-F74f4vw9rDMAu5Sxq2Dihf/libHSdirectory-tree-0.12.1-F74f4vw9rDMAu5Sxq2Dihf-ghc8.0.2.so
/usr/share/doc/packages/ghc-directory-tree
/usr/share/doc/packages/ghc-directory-tree/LICENSE

 
ICM