GithubHelp home page GithubHelp logo

louispan / ghcjs-base-stub Goto Github PK

View Code? Open in Web Editor NEW
8.0 8.0 7.0 64 KB

Allow GHCJS projects to compile under GHC and develop using intero

License: BSD 3-Clause "New" or "Revised" License

Makefile 0.36% Haskell 99.09% Nix 0.55%

ghcjs-base-stub's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

ghcjs-base-stub's Issues

Intergration

I am sorry, but can you add some basic example of how to be able to use Intero's error highlighting (I use vs code with haskero plugin) or help me to figure it out? I just can't figure it out, how for example can I make a hello world reflex project with the error highlighting using intero and this package which claims to make someone to be able to use intero for developing GHCJS project

build fails with aeson-2.0

ghcjs-base-stub                > Building library for ghcjs-base-stub-0.3.0.2..
ghcjs-base-stub                > [ 1 of 29] Compiling Data.JSString.Internal.Fusion.CaseMapping
ghcjs-base-stub                > [ 2 of 29] Compiling Data.JSString.Internal.Fusion.Common
ghcjs-base-stub                > [ 3 of 29] Compiling Data.JSString.Internal.Fusion.Types
ghcjs-base-stub                > [ 4 of 29] Compiling Data.JSString.Internal.Search
ghcjs-base-stub                > [ 5 of 29] Compiling GHCJS.Prim
ghcjs-base-stub                > [ 6 of 29] Compiling GHCJS.Internal.Types
ghcjs-base-stub                > [ 7 of 29] Compiling GHCJS.Concurrent
ghcjs-base-stub                > [ 8 of 29] Compiling Data.JSString.Internal.Type
ghcjs-base-stub                > [ 9 of 29] Compiling Data.JSString.Text
ghcjs-base-stub                > [10 of 29] Compiling Data.JSString.Internal.Fusion
ghcjs-base-stub                > [11 of 29] Compiling Data.JSString
ghcjs-base-stub                > [12 of 29] Compiling GHCJS.Types
ghcjs-base-stub                > [13 of 29] Compiling GHCJS.Foreign.Internal
ghcjs-base-stub                > [14 of 29] Compiling GHCJS.Foreign.Export
ghcjs-base-stub                > [15 of 29] Compiling GHCJS.Foreign.Callback.Internal
ghcjs-base-stub                > [16 of 29] Compiling GHCJS.Foreign.Callback
ghcjs-base-stub                > [17 of 29] Compiling GHCJS.Foreign
ghcjs-base-stub                > [18 of 29] Compiling JavaScript.Array.Internal
ghcjs-base-stub                > [19 of 29] Compiling JavaScript.Array
ghcjs-base-stub                > [20 of 29] Compiling JavaScript.Cast
ghcjs-base-stub                > [21 of 29] Compiling JavaScript.Object.Internal
ghcjs-base-stub                > [22 of 29] Compiling JavaScript.Object
ghcjs-base-stub                >             
ghcjs-base-stub                > /tmp/stack-71a3f8fe3d9f7ff2/ghcjs-base-stub-0.3.0.2/src/JavaScript/Object.hs:11:1: warning: [-Wunused-imports]
ghcjs-base-stub                >     The import of ‘JavaScript.Object.Internal’ is redundant
ghcjs-base-stub                >       except perhaps to import instances from ‘JavaScript.Object.Internal’
ghcjs-base-stub                >     To import instances alone, use: import JavaScript.Object.Internal()
ghcjs-base-stub                >    |        
ghcjs-base-stub                > 11 | import           JavaScript.Object.Internal (Object(..))
ghcjs-base-stub                >    | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
ghcjs-base-stub                > [23 of 29] Compiling GHCJS.Marshal.Internal
ghcjs-base-stub                > [24 of 29] Compiling GHCJS.Marshal.Pure
ghcjs-base-stub                >             
ghcjs-base-stub                > /tmp/stack-71a3f8fe3d9f7ff2/ghcjs-base-stub-0.3.0.2/src/GHCJS/Marshal/Pure.hs:26:52: warning: [-Wunused-imports]
ghcjs-base-stub                >     The import of ‘Word’ from module ‘Data.Word’ is redundant
ghcjs-base-stub                >    |        
ghcjs-base-stub                > 26 | import           Data.Word (Word8, Word16, Word32, Word)
ghcjs-base-stub                >    |                                                    ^^^^
ghcjs-base-stub                > [25 of 29] Compiling GHCJS.Nullable
ghcjs-base-stub                > [26 of 29] Compiling GHCJS.Marshal
ghcjs-base-stub                >             
ghcjs-base-stub                > /tmp/stack-71a3f8fe3d9f7ff2/ghcjs-base-stub-0.3.0.2/src/GHCJS/Marshal.hs:157:40: error:
ghcjs-base-stub                >     • Couldn't match type: H.HashMap Text v0
ghcjs-base-stub                >                      with: Data.Aeson.KeyMap.KeyMap AE.Value
ghcjs-base-stub                >       Expected: AE.Object
ghcjs-base-stub                >         Actual: H.HashMap Text v0
ghcjs-base-stub                >     • In the first argument of ‘AE.Object’, namely
ghcjs-base-stub                >         ‘(H.fromList propVals)’
ghcjs-base-stub                >       In the first argument of ‘return’, namely
ghcjs-base-stub                >         ‘(AE.Object (H.fromList propVals))’
ghcjs-base-stub                >       In a stmt of a 'do' block: return (AE.Object (H.fromList propVals))
ghcjs-base-stub                >     • Relevant bindings include
ghcjs-base-stub                >         propVals :: [(Text, v0)] (bound at src/GHCJS/Marshal.hs:154:21)
ghcjs-base-stub                >     |       
ghcjs-base-stub                > 157 |                     return (AE.Object (H.fromList propVals))
ghcjs-base-stub                >     |                                        ^^^^^^^^^^^^^^^^^^^
ghcjs-base-stub                >             
ghcjs-base-stub                > /tmp/stack-71a3f8fe3d9f7ff2/ghcjs-base-stub-0.3.0.2/src/GHCJS/Marshal.hs:278:102: error:
ghcjs-base-stub                >     • Couldn't match type: Data.Aeson.KeyMap.KeyMap AE.Value
ghcjs-base-stub                >                      with: H.HashMap Text AE.Value
ghcjs-base-stub                >       Expected: H.HashMap Text AE.Value
ghcjs-base-stub                >         Actual: AE.Object
ghcjs-base-stub                >     • In the first argument of ‘H.toList’, namely ‘o’
ghcjs-base-stub                >       In the second argument of ‘mapM_’, namely ‘(H.toList o)’
ghcjs-base-stub                >       In a stmt of a 'do' block:
ghcjs-base-stub                >         mapM_
ghcjs-base-stub                >           (\ (k, v)
ghcjs-base-stub                >              -> convertValue v
ghcjs-base-stub                >                   >>= \ v' -> OI.setProp (JSS.textToJSString k) v' obj)
ghcjs-base-stub                >           (H.toList o)
ghcjs-base-stub                >     |       
ghcjs-base-stub                > 278 |       mapM_ (\(k,v) -> convertValue v >>= \v' -> OI.setProp (JSS.textToJSString k) v' obj) (H.toList o)
ghcjs-base-stub                >     |                                                                                                      ^

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.