File tree Expand file tree Collapse file tree 7 files changed +48
-3
lines changed
Expand file tree Collapse file tree 7 files changed +48
-3
lines changed Original file line number Diff line number Diff line change 1+ name : CI
2+
3+ on :
4+ push :
5+ branches : [ master ]
6+ pull_request :
7+ branches : [ master ]
8+
9+ jobs :
10+ build :
11+ runs-on : ubuntu-latest
12+
13+ steps :
14+ - uses : actions/checkout@v4
15+
16+ - name : Install QuickFIX C++ library
17+ run : |
18+ sudo apt-get update
19+ sudo apt-get install -y libquickfix-dev
20+
21+ - name : Setup Haskell
22+ uses : haskell-actions/setup@v2
23+ with :
24+ ghc-version : ' 9.4'
25+ cabal-version : ' 3.10'
26+
27+ - name : Cache Cabal packages
28+ uses : actions/cache@v4
29+ with :
30+ path : |
31+ ~/.cabal/packages
32+ ~/.cabal/store
33+ dist-newstyle
34+ key : ${{ runner.os }}-cabal-${{ hashFiles('**/*.cabal') }}
35+ restore-keys : |
36+ ${{ runner.os }}-cabal-
37+
38+ - name : Update Cabal package list
39+ run : cabal update
40+
41+ - name : Build
42+ run : cabal build
Original file line number Diff line number Diff line change 55
66# GHC build goo
77dist /
8+ dist-newstyle /
89docs /
910out /
1011* .dump- *
Original file line number Diff line number Diff line change @@ -34,7 +34,7 @@ Library
3434
3535 HS-Source-Dirs : src
3636
37- GHC-Options : -Wall
37+ GHC-Options : -Wall -optcxx-std=c++11
3838 CC-Options : -O2 -ggdb
3939
4040 C-Sources : cbits/QuickFIXThunks.cpp
Original file line number Diff line number Diff line change @@ -277,5 +277,5 @@ char* sessionDisconnect(const FIX::SessionID& sid)
277277extern " C"
278278char * sessionString (const FIX::SessionID& sid)
279279{
280- strdup (sid.toStringFrozen ().c_str ());
280+ return strdup (sid.toStringFrozen ().c_str ());
281281}
Original file line number Diff line number Diff line change 44{-# LANGUAGE KindSignatures #-}
55{-# LANGUAGE ScopedTypeVariables #-}
66{-# LANGUAGE TypeOperators #-}
7+ {-# LANGUAGE UndecidableInstances #-}
78
89module AlphaHeavy.QuickFIX.GReceive where
910
Original file line number Diff line number Diff line change 44{-# LANGUAGE KindSignatures #-}
55{-# LANGUAGE ScopedTypeVariables #-}
66{-# LANGUAGE TypeOperators #-}
7+ {-# LANGUAGE UndecidableInstances #-}
78
89module AlphaHeavy.QuickFIX.GSend where
910
Original file line number Diff line number Diff line change @@ -56,7 +56,7 @@ instance GetMessageField ByteString where
5656instance GetMessageField Data.Time. UTCTime where
5757 getMessageField msg fid = do
5858 txt <- getMessageField msg fid
59- case parseTime defaultTimeLocale " %Y%m%d-%H:%M:%S" txt of
59+ case parseTimeM True defaultTimeLocale " %Y%m%d-%H:%M:%S" txt of
6060 Just val -> return $! val
6161 Nothing -> throwIO . IncorrectTagValue fid $ txt
6262
You can’t perform that action at this time.
0 commit comments