fixhs - FIX engine implementation in Haskell
urv / fixhs Goto Github PK
View Code? Open in Web Editor NEWFIX (co)parser in haskell
Home Page: http://hackage.haskell.org/package/fixhs
License: GNU Lesser General Public License v2.1
FIX (co)parser in haskell
Home Page: http://hackage.haskell.org/package/fixhs
License: GNU Lesser General Public License v2.1
There are some FIX values that are actually enums. During parsing a FIX message we don't validate the
parsed enum's value.
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.
The orthogonality property
(parse)^*(parse) == id == (parse)(parse)^*
fails.
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.
Define a FIX group specification data type and some transformers to get a parser out of it.
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 a benchmark of our FIX parser (maybe using Ciretorion) and compare to other FIX engine implementations.
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
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.