Adjust to new hpath API
This commit is contained in:
parent
41e2ae6131
commit
3b2ee6dfd4
3
.gitmodules
vendored
3
.gitmodules
vendored
@ -1,3 +0,0 @@
|
||||
[submodule "3rdparty/hpath"]
|
||||
path = 3rdparty/hpath
|
||||
url = https://github.com/hasufell/hpath.git
|
1
3rdparty/hpath
vendored
1
3rdparty/hpath
vendored
@ -1 +0,0 @@
|
||||
Subproject commit b9b46583fac6aa34b80524a907c13b8f42dcdfcb
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user