byorgey / haxr Goto Github PK
View Code? Open in Web Editor NEWLicense: Other
License: Other
Preprocessing library haxr-3000.10.4.1...
Network/XmlRpc/Server.hs:35:18:
Could not find module ‘Control.Monad.Except’
It is a member of the hidden package ‘mtl-compat-0.2.1.3’.
Perhaps you need to add ‘mtl-compat’ to the build-depends in your .cabal file.
Use -v to see a list of the files searched for.
This is an annoyance that I don't have time to patch right now, but we should address the compiler warnings from using ErrorT
instead of ExceptT
at some point.
Would it be possible to add support for https?
building with ghc-7.10 RC 2 (ghc-7.10.0.20150123) I get this:
[4 of 8] Compiling Network.XmlRpc.Internals ( Network/XmlRpc/Internals.hs, dist/build/Network/XmlRpc/Internals.o )
Network/XmlRpc/Internals.hs:400:29:
Ambiguous occurrence ‘defaultTimeLocale’
It could refer to either ‘Data.Time.Format.defaultTimeLocale’,
imported from ‘Data.Time.Format’ at Network/XmlRpc/Internals.hs:48:1-33
(and originally defined in ‘time-1.5.0.1:Data.Time.Format.Locale’)
or ‘System.Locale.defaultTimeLocale’,
imported from ‘System.Locale’ at Network/XmlRpc/Internals.hs:53:1-30
Network/XmlRpc/Internals.hs:511:20:
Ambiguous occurrence ‘defaultTimeLocale’
It could refer to either ‘Data.Time.Format.defaultTimeLocale’,
imported from ‘Data.Time.Format’ at Network/XmlRpc/Internals.hs:48:1-33
(and originally defined in ‘time-1.5.0.1:Data.Time.Format.Locale’)
or ‘System.Locale.defaultTimeLocale’,
imported from ‘System.Locale’ at Network/XmlRpc/Internals.hs:53:1-30
Failed to install haxr-3000.10.3.1
Unfortunately HaXml does not build yet with ghc-9.0: hackage-trustees/malcolm-wallace-universe#11.
I actually only need it for haxr... I was told to make my own fork if I want to upload a fixed HaXml...
Just wondering what is the best approach here in terms of maintenance. Any thoughts or suggestions?
If running the example in https://hackage.haskell.org/package/haxr-3000.11.2/docs/Network-XmlRpc-Client.html only exchanging the url and the "example.add", it gives me an error of ambuous type variable:
Ambiguous type variable ‘t0’ arising from a use of ‘remote’ prevents the constraint ‘(Network.XmlRpc.Internals.XmlRpcType t0)’ from being solved.
Whole compiler error: error.txt
Strangely, when running the "remote url functionStr" in ghci, it prints me the resulting XML. But when I try to parse it, it does not work because the result is of type Remote t => t instead of String. Applying "show" manually, like in the official example, just gives me the ambiguous type error...
How can I solve this? And could you update the example to a working one for future users of the library?
ghc-8 comes with template-haskell-2.11, and this gives
[6 of 8] Compiling Network.XmlRpc.THDeriveXmlRpcType ( Network/XmlRpc/THDeriveXmlRpcType.hs, dist/build/Network/XmlRpc/THDeriveXmlRpcType.o )
Network/XmlRpc/THDeriveXmlRpcType.hs:40:14: error:
• The constructor ‘DataD’ should have 6 arguments, but has been given 5
• In the pattern: DataD _ n _ [RecC c fs] _
Cf. https://ghc.haskell.org/trac/ghc/wiki/Migration/8.0#template-haskell-2.11.0.0
Some functions use String
type as argument for parsing XML-RPC request/response, e.g.
parseCall :: (Show e, MonadError e m) => String -> Err m MethodCall
or
parseResponse :: (Show e, MonadError e m) => String -> Err m MethodResponse
so, may be lazy ByteString
type do have best performance for this?
Hi,
I needed several hours (over several days) to find out why my application stopped working: because you switched the default port to 443. ( https://gitlab.imn.htwk-leipzig.de/autotool/all/issues/19 )
This looks very strange, especially if the server adress contains the protocol name (as it should), as in http://foo.bar/whatever
. Only after wiresharking, and studying the source, I found that I have to http://foo.bar:80/whatever
.
Would the "simple client example" work at all? https://hackage.haskell.org/package/haxr-3000.11.1.5/docs/Network-XmlRpc-Client.html
If this was intended, then this calls for an update in the documentation.
Or is it just a bug? I think the part "depending on URL" is not true:
3000.11.1 (10 July 2015)
- Support both HTTP and HTTPS automatically, depending on URL.
I think the code is wrong because you pick the default port outside the "case".
let hostname = BS.pack (uriRegName auth)
port = fromMaybe 443 (readMaybe $ drop 1 $ uriPort auth)
c <- case init $ uriScheme uri of
"http" ->
openConnection hostname port
"https" -> do
ctx <- baselineContextSSL
openConnectionSSL ctx hostname port
I will submit a trivial patch.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.