Giter Club home page Giter Club logo

haxr's People

Contributors

acowley avatar akru avatar bens avatar bringert avatar byorgey avatar fuwa25519 avatar gracjan avatar int-e avatar jamesdabbs avatar juhp avatar jwaldmann avatar laurencer avatar lboklin avatar magthe avatar pesco avatar teofilc avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

haxr's Issues

Build failure from mtl-compat overhaul

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.

ErrorT deprecation

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.

build error with ghc-7.10 (Ambiguous occurrence ‘defaultTimeLocale’)

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

XML RPC Client Example not working

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?

String vs ByteString/Text performance

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?

please document: default port 443

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.

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.