koka-lang / koka

Koka language compiler and interpreter
http://koka-lang.org
Other
3.17k stars 153 forks source link

Compilation error #1

Closed rauchg closed 7 years ago

rauchg commented 7 years ago
build: koka 0.8.0-dev (debug version)
> mkdir -p out/debug/Platform
> ghc -c src/Platform/cpp/Platform/cconsole.c -fwarn-incomplete-patterns -io...
> ghc -c src/Platform/cpp/Platform/Config.hs -fwarn-incomplete-patterns -iou...
> ghc -c src/Platform/cpp/Platform/Runtime.hs -fwarn-incomplete-patterns -io...
> ghc -c src/Platform/cpp/Platform/Var.hs -fwarn-incomplete-patterns -iout/d...
> ghc -c src/Platform/cpp/Platform/Console.hs -fwarn-incomplete-patterns -io...
> ghc -c src/Platform/cpp/Platform/ReadLine.hs -fwarn-incomplete-patterns -i...
> ghc -c src/Platform/cpp/Platform/GetOptions.hs -fwarn-incomplete-patterns ...
> ghc -c src/Platform/cpp/Platform/Filetime.hs -fwarn-incomplete-patterns -i...
> ghc -c src/Lib/Printer.hs -fwarn-incomplete-patterns -iout/debug -odir out...
/debug -hidir out/debug
src/Lib/Printer.hs:37:1: error:
    Failed to load interface for ‘Data.Text’
    Perhaps you meant Data.Set (from containers-0.5.7.1)
    Use -v to see a list of the files searched for.

src/Lib/Printer.hs:38:1: error:
    Failed to load interface for ‘Data.Text.IO’
    Use -v to see a list of the files searched for.
command failed with exit code 1.

Using

▲  koka (master) ghc --version
The Glorious Glasgow Haskell Compilation System, version 8.0.2

on macOS (ghc installed from brew)

My npm ls:

▲  koka (master) npm ls
koka@0.8.0-dev /Users/rauchg/Documents/Projects/koka
├── amdefine@1.0.1
├─┬ commander@2.9.0
│ └── graceful-readlink@1.0.1
├─┬ node-static@0.7.9
│ ├── colors@1.1.2
│ ├── mime@1.3.4
│ └─┬ optimist@0.6.1
│   ├── minimist@0.0.10
│   └── wordwrap@0.0.3
├── requirejs@2.3.2
└─┬ ws@1.1.1
  ├── options@0.0.6
  └── ultron@1.0.2

and jake:

▲  koka (master) jake --version
8.0.15

Should I be attempting to build master, or do you recommend I go with a certain tag or commit?

nrolland commented 7 years ago

do you have text in your package list when you do ghc-pkg list ? if not you can do so by cabal install text

kurtschelfthout commented 7 years ago

Yeah I had to do

cabal install text parsec random

And then things work.

rauchg commented 7 years ago

@kurtschelfthout that worked. Thanks