Comments (7)
Why do you want to cabal install req
? Use new-
or v2-
commands.
from req.
You create a .cabal
file that describes your package and its dependencies and then you do cabal new-build
or cabal v2-build
and it builds it solving the package version constraints just for this single package in isolation. If you install packages globally you'll quickly find yourself in dependency hell. It's something we did in ~2013 or so.
Or use stack
. Or use nix
.
from req.
It's something we did in ~2013 or so.
I'm learning, so maybe a good lesson in package management.
I'm setting up a remote linux instance, where I can use http-client
and req
with ghci interpreter, so there really isn't a package I'm developping or supporting now.
I'm trying to get an example from req README to run. So far I installed haskell platfrom with sudo apt-get install haskell-platform
and I want to run
Prelude> import Network.HTTP.Req
<no location info>: error:
Could not find module ‘Network.HTTP.Req’
Is cabal install req --force-reinstalls
too risky? Maybe I should reinstall HTTP
after running it.
stack
would be good for a package too, but not for global installation right?
nix
I know nothing about yet, seems quite learning curve.
from req.
cabal install req --force-reinstalls
worked fine for running a README example
from req.
Usually I experiment by creating a small project. You can do it either with stack
or with cabal
. I'm not sure why you need a remote linux instance though, you could do it locally on your computer.
The install commands are usually for binaries. What they do is they build the packages and put their executables on PATH
(if configured properly).
from req.
Usually I experiment by creating a small project.
That's a useful tip, not usually found on tutorials. Should learn to use more often.
why you need a remote linux instance though
I'm locked on Windows - in my path I have non-latin characters for home directory, so many installations fail (eg entropy package) and WSL is not yet compatible with cabal
and tools using it.
So my choices were either a big local virtualisation or a small remote machine. I use VS Code remote features to handle the remote, so in stable situation it is a good combo.
from req.
Should we close this one?
from req.
Related Issues (20)
- Make Req an instance of MonadUnliftIO HOT 2
- Cannot perform a request with url containing braces HOT 7
- Hard to pass Link header URIs back into req HOT 5
- When req fails with a StatusCodeException the body is truncated HOT 4
- Get access to the Request HOT 5
- Add `MonadMask` instance for `Req`?
- ConnectionTimeout with "req" even though "curl" and browser work just fine HOT 1
- Set a retrying limit by default for request timeouts HOT 2
- not installable on ghc 9.0.1 due to reliance on base <4.15 HOT 3
- Support retry 0.9 HOT 1
- How can I retrieve the exact URL with query parameters? Possible limitation? HOT 6
- Interface with ToForm and FromForm HOT 2
- Support for GHC 9.2 HOT 2
- Not compatible with transformers-0.6 HOT 1
- Allow payload for DELETE
- Make responses printable. HOT 1
- Hackage docs not working for 3.3.0 HOT 2
- How can I retry the request even if it errors out? HOT 2
- unexpected program termination HOT 2
- Inspecting Request Created by `req` Function HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from req.