Adjust to new hpath API

This commit is contained in:
Julian Ospald 2016-05-09 19:56:14 +02:00
parent 41e2ae6131
commit 3b2ee6dfd4
No known key found for this signature in database
GPG Key ID: 511B62C09D50CD28
5 changed files with 2 additions and 22 deletions

3
.gitmodules vendored
View File

@ -1,3 +0,0 @@
[submodule "3rdparty/hpath"]
path = 3rdparty/hpath
url = https://github.com/hasufell/hpath.git

1
3rdparty/hpath vendored

@ -1 +0,0 @@
Subproject commit b9b46583fac6aa34b80524a907c13b8f42dcdfcb

View File

@ -21,9 +21,7 @@ Installation
------------
```
git submodule update --init --recursive
cabal sandbox init
cabal sandbox add-source 3rdparty/hpath
cabal install alex happy
export PATH="$(pwd)/.cabal-sandbox/bin:$PATH"
cabal install gtk2hs-buildtools

View File

@ -19,20 +19,6 @@ documentation.
## Hacking Overview
The main data structure for the IO related File type is in
[HSFM.FileSystem.FileType](./../src/HSFM/FileSystem/FileType.hs#L93), which
should be seen as a library. This is the entry point where
[directory contents are read](./../src/HSFM/FileSystem/FileType.hs#L465)
and the File type in general [is constructed](./../src/HSFM/FileSystem/FileType.hs#L302).
The File type uses a safe Path type under the hood instead of Strings,
utilizing the [hpath](https://github.com/hasufell/hpath) library.
Note that mostly only absolute paths are allowed on type level to improve
path and thread safety.
File operations (like copy, delete etc) are defined at
[HSFM.FileSystem.FileOperation](./../src/HSFM/FileSystem/FileOperations.hs)
which use this File type.
Only a GTK GUI is currently implemented, the entry point being
[HSFM.GUI.Gtk](./../src/HSFM/GUI/Gtk.hs). From there it flows down
to creating a [MyGUI object](./../src/HSFM/GUI/Gtk/Data.hs#L51) in

View File

@ -35,7 +35,7 @@ library
data-default,
filepath >= 1.3.0.0,
hinotify-bytestring,
hpath,
hpath >= 0.5.9,
safe,
stm,
time >= 1.4.2,
@ -76,7 +76,7 @@ executable hsfm-gtk
glib >= 0.13,
gtk3 >= 0.14.1,
hinotify-bytestring,
hpath,
hpath >= 0.5.9,
hsfm,
old-locale >= 1,
process,