Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
42 changes: 42 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
name: CI

on:
push:
branches: [ master ]
pull_request:
branches: [ master ]

jobs:
build:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4

- name: Install QuickFIX C++ library
run: |
sudo apt-get update
sudo apt-get install -y libquickfix-dev

- name: Setup Haskell
uses: haskell-actions/setup@v2
with:
ghc-version: '9.4'
cabal-version: '3.10'

- name: Cache Cabal packages
uses: actions/cache@v4
with:
path: |
~/.cabal/packages
~/.cabal/store
dist-newstyle
key: ${{ runner.os }}-cabal-${{ hashFiles('**/*.cabal') }}
restore-keys: |
${{ runner.os }}-cabal-

- name: Update Cabal package list
run: cabal update

- name: Build
run: cabal build
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@

# GHC build goo
dist/
dist-newstyle/
docs/
out/
*.dump-*
Expand Down
2 changes: 1 addition & 1 deletion alphaheavy-quickfix.cabal
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ Library

HS-Source-Dirs: src

GHC-Options: -Wall
GHC-Options: -Wall -optcxx-std=c++11
CC-Options: -O2 -ggdb

C-Sources: cbits/QuickFIXThunks.cpp
Expand Down
2 changes: 1 addition & 1 deletion cbits/QuickFIXThunks.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -277,5 +277,5 @@ char* sessionDisconnect(const FIX::SessionID& sid)
extern "C"
char* sessionString(const FIX::SessionID& sid)
{
strdup(sid.toStringFrozen().c_str());
return strdup(sid.toStringFrozen().c_str());
}
1 change: 1 addition & 0 deletions src/AlphaHeavy/QuickFIX/GReceive.hs
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
{-# LANGUAGE KindSignatures #-}
{-# LANGUAGE ScopedTypeVariables #-}
{-# LANGUAGE TypeOperators #-}
{-# LANGUAGE UndecidableInstances #-}

module AlphaHeavy.QuickFIX.GReceive where

Expand Down
1 change: 1 addition & 0 deletions src/AlphaHeavy/QuickFIX/GSend.hs
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
{-# LANGUAGE KindSignatures #-}
{-# LANGUAGE ScopedTypeVariables #-}
{-# LANGUAGE TypeOperators #-}
{-# LANGUAGE UndecidableInstances #-}

module AlphaHeavy.QuickFIX.GSend where

Expand Down
2 changes: 1 addition & 1 deletion src/AlphaHeavy/QuickFIX/GetMessageField.hs
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ instance GetMessageField ByteString where
instance GetMessageField Data.Time.UTCTime where
getMessageField msg fid = do
txt <- getMessageField msg fid
case parseTime defaultTimeLocale "%Y%m%d-%H:%M:%S" txt of
case parseTimeM True defaultTimeLocale "%Y%m%d-%H:%M:%S" txt of
Just val -> return $! val
Nothing -> throwIO . IncorrectTagValue fid $ txt

Expand Down
Loading