mirror of
https://github.com/GrammaticalFramework/gf-core.git
synced 2026-04-23 19:42:50 -06:00
Remove GF.Today and use the autogenerated Paths_gf from Cabal
This commit is contained in:
1
GF.cabal
1
GF.cabal
@@ -118,7 +118,6 @@ executable gf3
|
|||||||
GF.Grammar.Predef
|
GF.Grammar.Predef
|
||||||
GF.Data.Str
|
GF.Data.Str
|
||||||
GF.Data.Zipper
|
GF.Data.Zipper
|
||||||
GF.Today
|
|
||||||
GF.Infra.Option
|
GF.Infra.Option
|
||||||
GF.Infra.UseIO
|
GF.Infra.UseIO
|
||||||
GF.GFCC.GFCCtoJS
|
GF.GFCC.GFCCtoJS
|
||||||
|
|||||||
@@ -17,7 +17,7 @@ module GF.Infra.UseIO where
|
|||||||
|
|
||||||
import GF.Data.Operations
|
import GF.Data.Operations
|
||||||
import GF.Infra.Option
|
import GF.Infra.Option
|
||||||
import GF.Today (libdir)
|
import Paths_gf(getDataDir)
|
||||||
|
|
||||||
import System.Directory
|
import System.Directory
|
||||||
import System.FilePath
|
import System.FilePath
|
||||||
@@ -114,7 +114,7 @@ getLibraryPath =
|
|||||||
let (path,_) = splitFileName exepath
|
let (path,_) = splitFileName exepath
|
||||||
canonicalizePath (combine path "../lib"))
|
canonicalizePath (combine path "../lib"))
|
||||||
#else
|
#else
|
||||||
(const (return libdir))
|
(const getDataDir)
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
-- | extends the search path with the
|
-- | extends the search path with the
|
||||||
|
|||||||
Reference in New Issue
Block a user