Code Monkey home page Code Monkey logo

Comments (10)

kazu-yamamoto avatar kazu-yamamoto commented on July 19, 2024

This problem can be fixed if we can specify "-package ghc", right?
If so, I can hack so that the option is automatically specifiedy if "import GHC" is found.
But it seems to me that linking the ghc library is very slow. Is it OK for you?

from ghc-mod.

mwotton avatar mwotton commented on July 19, 2024

I think it's better to be slow than to just fail.
does ghc-mod keep a server process around, or is a new one started each time? you might be able to avoid the cost by keeping a pre-loaded server around.

from ghc-mod.

kazu-yamamoto avatar kazu-yamamoto commented on July 19, 2024

A new one started each time.
Just a question. Can we use GHC as a server?

from ghc-mod.

mwotton avatar mwotton commented on July 19, 2024

I think so - scion http://code.google.com/p/scion-lib/ starts up a scion-server process.

from ghc-mod.

kazu-yamamoto avatar kazu-yamamoto commented on July 19, 2024

OK, I will look. Thank you for the information.
Since I'm very busy right now, I will come back to this issue on 23 April or so.

from ghc-mod.

kazu-yamamoto avatar kazu-yamamoto commented on July 19, 2024

Current ghc-mod does not choke any lines if GHC module is used (not check any errors/warnings). Even if GHC API is used, checking a file with GHC modules is very slow. We need to consider special UI for the files using GHC modules so that only manual check is allowed.

from ghc-mod.

kazu-yamamoto avatar kazu-yamamoto commented on July 19, 2024

Preventing linking results in confortable speed for -package ghc!

from ghc-mod.

mwotton avatar mwotton commented on July 19, 2024

Heh. Great. you're using the ghc-API? I think there's an -fno-code option if you're just calling ghc.

from ghc-mod.

kazu-yamamoto avatar kazu-yamamoto commented on July 19, 2024

Ah! I remember the option! I set the option in GHC API.

from ghc-mod.

mwotton avatar mwotton commented on July 19, 2024

working great.

from ghc-mod.

Related Issues (20)

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.