Using stack with haste

106 views
Skip to first unread message

Kevin Van Horn

unread,
Mar 20, 2016, 3:19:38 PM3/20/16
to haste-compiler
Has anyone had any luck using stack and haste together? I have not been able to. I did the following:

1. stack install haste-compiler

2. When I tried to use hastec I got the message "Haste needs to be rebooted; please run haste-boot". So I did...

3. stack exec haste-boot

which failed giving me a bunch of errors related to ghc-prim:

    Downloading haste-cabal from GitHub

    Downloading Google Closure compiler...

    Downloading base libs from GitHub

    Reading package info from "libraries/rts.pkg" ... done.

    Warning: Topdown solver is deprecated

    Resolving dependencies...

    Configuring ghc-prim-0.4.0.0...

    Building ghc-prim-0.4.0.0...

    Installed ghc-prim-0.4.0.0

    Reading package info from "ghc-prim-0.4.0.0-osx.conf" ... done.

    ghc-prim-0.4.0.0: Warning: library-dirs: /Users/kevin/.haste/x86_64-darwin-haste-0.5.3-ghc-7.10.2/ghc-prim-0.4.0.0 doesn't exist or isn't a directory

    ghc-prim-0.4.0.0: import-dirs: /Users/kevin/.haste/x86_64-darwin-haste-0.5.3-ghc-7.10.2/ghc-prim-0.4.0.0 doesn't exist or isn't a directory (use --force to override)

    ghc-prim-0.4.0.0: cannot find any of ["GHC/CString.hi","GHC/CString.p_hi","GHC/CString.dyn_hi"] (use --force to override)

    ghc-prim-0.4.0.0: cannot find any of ["GHC/Classes.hi","GHC/Classes.p_hi","GHC/Classes.dyn_hi"] (use --force to override) 

    ghc-prim-0.4.0.0: cannot find any of ["GHC/Debug.hi","GHC/Debug.p_hi","GHC/Debug.dyn_hi"] (use --force to override)

    ghc-prim-0.4.0.0: cannot find any of ["GHC/IntWord64.hi","GHC/IntWord64.p_hi","GHC/IntWord64.dyn_hi"] (use --force to override) 

    ghc-prim-0.4.0.0: cannot find any of ["GHC/Magic.hi","GHC/Magic.p_hi","GHC/Magic.dyn_hi"] (use --force to override)

    ghc-prim-0.4.0.0: cannot find any of ["GHC/PrimopWrappers.hi","GHC/PrimopWrappers.p_hi","GHC/PrimopWrappers.dyn_hi"] (use --force to override)

    ghc-prim-0.4.0.0: cannot find any of ["GHC/Tuple.hi","GHC/Tuple.p_hi","GHC/Tuple.dyn_hi"] (use --force to override)

    ghc-prim-0.4.0.0: cannot find any of ["GHC/Types.hi","GHC/Types.p_hi","GHC/Types.dyn_hi"] (use --force to override)   

    Command '/Users/kevin/Dev/learning-haste/.stack-work/install/x86_64-osx/lts-3.19/7.10.2/bin/haste-pkg' failed with error  code 1


Anton Ekblad

unread,
Mar 21, 2016, 5:44:19 AM3/21/16
to haste-compiler
This looks like a known issue with the latest version of OSX. It's caused by some GHC paths having changed between OSX versions.

In general, you shouldn't build Haste yourself on non-Linux platforms (the build is pretty complex and annoying) but use the pre-compiled binaries from http://haste-lang.org/downloads.

/Anton

--
You received this message because you are subscribed to the Google Groups "haste-compiler" group.
To unsubscribe from this group and stop receiving emails from it, send an email to haste-compile...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
Message has been deleted
0 new messages