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 init
|
||||||
cabal sandbox add-source 3rdparty/hpath
|
|
||||||
cabal install alex happy
|
cabal install alex happy
|
||||||
export PATH="$(pwd)/.cabal-sandbox/bin:$PATH"
|
export PATH="$(pwd)/.cabal-sandbox/bin:$PATH"
|
||||||
cabal install gtk2hs-buildtools
|
cabal install gtk2hs-buildtools
|
||||||
|
@ -19,20 +19,6 @@ documentation.
|
|||||||
|
|
||||||
## Hacking Overview
|
## 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
|
Only a GTK GUI is currently implemented, the entry point being
|
||||||
[HSFM.GUI.Gtk](./../src/HSFM/GUI/Gtk.hs). From there it flows down
|
[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
|
to creating a [MyGUI object](./../src/HSFM/GUI/Gtk/Data.hs#L51) in
|
||||||
|
@ -35,7 +35,7 @@ library
|
|||||||
data-default,
|
data-default,
|
||||||
filepath >= 1.3.0.0,
|
filepath >= 1.3.0.0,
|
||||||
hinotify-bytestring,
|
hinotify-bytestring,
|
||||||
hpath,
|
hpath >= 0.5.9,
|
||||||
safe,
|
safe,
|
||||||
stm,
|
stm,
|
||||||
time >= 1.4.2,
|
time >= 1.4.2,
|
||||||
@ -76,7 +76,7 @@ executable hsfm-gtk
|
|||||||
glib >= 0.13,
|
glib >= 0.13,
|
||||||
gtk3 >= 0.14.1,
|
gtk3 >= 0.14.1,
|
||||||
hinotify-bytestring,
|
hinotify-bytestring,
|
||||||
hpath,
|
hpath >= 0.5.9,
|
||||||
hsfm,
|
hsfm,
|
||||||
old-locale >= 1,
|
old-locale >= 1,
|
||||||
process,
|
process,
|
||||||
|
Loading…
Reference in New Issue
Block a user