File tree 1 file changed +11
-0
lines changed
1 file changed +11
-0
lines changed Original file line number Diff line number Diff line change 6
6
import Turtle
7
7
import qualified Control.Foldl as L
8
8
import Control.Monad
9
+ #if MIN_VERSION_turtle(1,6,0)
10
+ import qualified Data.Text as T
11
+ #endif
9
12
import Distribution.Package
10
13
import Distribution.PackageDescription
11
14
import Distribution.PackageDescription.Parsec
@@ -58,12 +61,20 @@ main = sh $ do
58
61
when b $ rmtree pkg
59
62
60
63
mktree (pkg </> " bin" )
64
+ #if MIN_VERSION_turtle(1,6,0)
65
+ let binDir = T. unpack (lineToText local_install_root) </> " bin"
66
+ #else
61
67
let binDir = fromText (lineToText local_install_root) </> " bin"
68
+ #endif
62
69
forM exe_files $ \ name -> do
63
70
cp (binDir </> addExeSuffix name) (pkg </> " bin" </> addExeSuffix name)
64
71
65
72
mktree (pkg </> " lib" )
73
+ #if MIN_VERSION_turtle(1,6,0)
74
+ let libDir = T. unpack (lineToText local_install_root) </> " lib"
75
+ #else
66
76
let libDir = fromText (lineToText local_install_root) </> " lib"
77
+ #endif
67
78
when (Info. os == " mingw32" ) $ do
68
79
cp (libDir </> " toysat-ipasir.dll" ) (pkg </> " bin" </> " toysat-ipasir.dll" )
69
80
proc " stack"
You can’t perform that action at this time.
0 commit comments