Code Monkey home page Code Monkey logo

fixhs's Introduction

fixhs - FIX engine implementation in Haskell

Build Status

fixhs's People

Contributors

urv avatar yveshauser avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

fixhs's Issues

Enums are not validated

There are some FIX values that are actually enums. During parsing a FIX message we don't validate the
parsed enum's value.

Define BuilderLike typeclass

Use a new BuilderLike typeclass to serialize a FIX message. Moreover make String, ByteString, DList, Builder instances
of that typeclass. This is usefull to try und test which of the DataStructures are best for building up a message.

No chunks left

Using the _nextP parser to validate a FIX message and parse the key/value pairs we get
"No chunks left" exception after about 1k of messages.

Implement FIX Group

Define a FIX group specification data type and some transformers to get a parser out of it.

Use of an iteratee's

Use of an iteratee for reading from the socket, or maybe make use as well of attoparsec-iteratee (See monad reader issue 16 about iteratees)

Make benchmark of parsing

Make a benchmark of our FIX parser (maybe using Ciretorion) and compare to other FIX engine implementations.

Compilation fails with GHC 7.4.1

It works with GHC 7.0.3 but fails with 7.4.1:

[ 3 of 11] Compiling Data.Coparser    ( src/Data/Coparser.hs, dist/build/Data/Coparser.o )

src/Data/Coparser.hs:42:22:
    Could not deduce (Show i) arising from a use of `show'
    from the context (BuilderLike a c)
      bound by the class declaration for `BuilderLike'
      at src/Data/Coparser.hs:(31,1)-(54,38)
    or from (Integral i)
      bound by the type signature for decimal :: Integral i => i -> a
      at src/Data/Coparser.hs:42:5-25
    Possible fix:
      add (Show i) to the context of
        the type signature for decimal :: Integral i => i -> a
        or the class declaration for `BuilderLike'
    In the second argument of `(.)', namely `show'
    In the expression: pack . show
    In an equation for `decimal': decimal = pack . show

src/Data/Coparser.hs:43:24:
    Could not deduce (Show r) arising from a use of `show'
    from the context (BuilderLike a c)
      bound by the class declaration for `BuilderLike'
      at src/Data/Coparser.hs:(31,1)-(54,38)
    or from (RealFloat r)
      bound by the type signature for realFloat :: RealFloat r => r -> a
      at src/Data/Coparser.hs:43:5-27
    Possible fix:
      add (Show r) to the context of
        the type signature for realFloat :: RealFloat r => r -> a
        or the class declaration for `BuilderLike'
    In the second argument of `(.)', namely `show'
    In the expression: pack . show
    In an equation for `realFloat': realFloat = pack . show
cabal: Error: some packages failed to install:
fixhs-0.1.3 failed during the building phase. The exception was:
ExitFailure 1

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.