Closed
Description
Hello, there
In Snowdrift, we have a database setup script called sdb.hs
. It uses
stack
along with the turtle
package to run as a quasi-shell script.
When I tried to run it today to start the database server, I got this
error message:
sdb.hs:70:47:
Couldn't match type ‘T.Text’
with ‘Text’
NB: ‘T.Text’
is defined in ‘Data.Text.Internal’ in package ‘text-1.2.2.1’
‘Text’ is defined in ‘Data.Text.Internal’ in package ‘text-1.2.2.0’
Expected type: String -> Text
Actual type: String -> T.Text
In the first argument of ‘map’, namely ‘T.pack’
In the second argument of ‘procs’, namely ‘(map T.pack as')’
sdb.hs:140:37:
Couldn't match type ‘T.Text’
with ‘Text’
NB: ‘T.Text’
is defined in ‘Data.Text.Internal’ in package ‘text-1.2.2.1’
‘Text’ is defined in ‘Data.Text.Internal’ in package ‘text-1.2.2.0’
Expected type: Char -> Text
Actual type: Char -> T.Text
In the first argument of ‘(<$>)’, namely ‘T.singleton’
In the second argument of ‘(>>)’, namely
‘(T.singleton <$> (char '#' <|> newline))’
sdb.hs:221:41:
Couldn't match type ‘T.Text’
with ‘Text’
NB: ‘T.Text’
is defined in ‘Data.Text.Internal’ in package ‘text-1.2.2.1’
‘Text’ is defined in ‘Data.Text.Internal’ in package ‘text-1.2.2.0’
Expected type: Char -> Text
Actual type: Char -> T.Text
In the second argument of ‘(.)’, namely ‘T.singleton’
In the first argument of ‘fmap’, namely ‘(Just . T.singleton)’
As you can see, stack is using multiple versions of text
, and coming up with this ridiculous error.
Bulleted information:
- Script URL: https://git.gnu.io/pharpend/snowdrift/blob/mech-sibling/sdb.hs
stack --version
:
Version 1.0.5, Git revision 51492566184b4f98106de0e8199c8962dace567e x86_64
- Steps to reproduce:
git clone https://git.gnu.io/pharpend/snowdrift.git -b mech-sibling
cd snowdrift
./sdb.hs init