Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
7 changed files
with
174 additions
and
30 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -71,7 +71,5 @@ RELEASE-VERSION | |
|
||
# Haskell | ||
.stack-work/ | ||
.cabal-sandbox/ | ||
cabal.sandbox.config | ||
dist/ | ||
.build/ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
#!/usr/bin/env stack | ||
{- stack | ||
runghc | ||
--package shakers | ||
-} | ||
|
||
{-# LANGUAGE NoImplicitPrelude #-} | ||
{-# LANGUAGE OverloadedStrings #-} | ||
|
||
-- | Shake makefile for project. | ||
-- | ||
import Development.Shakers | ||
|
||
-- | Main entry point. | ||
-- | ||
main :: IO () | ||
main = shakeMain $ do | ||
let pats = | ||
[ "stack*.yaml" | ||
, "Shakefile.hs" | ||
, "main//*.hs" | ||
, "src//*.hs" | ||
] | ||
pats' = delete "stack*.yaml" pats | ||
|
||
-- | Haskell rules. | ||
-- | ||
hsRules "." pats' | ||
|
||
-- | Cabal rules. | ||
-- | ||
cabalRules "." "sbp.cabal" | ||
|
||
-- | Stack rules. | ||
-- | ||
stackRules "." pats | ||
|
||
-- | sanity | ||
-- | ||
fake "." pats "sanity" $ const $ | ||
need [ "tests-error", "lint" ] | ||
|
||
-- | Default things to run. | ||
-- | ||
want [ "sanity", "format" ] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,125 @@ | ||
name: sbp | ||
version: VERSION | ||
synopsis: SwiftNav's SBP Library | ||
homepage: https://github.com/swift-nav/libsbp | ||
license: LGPL-3 | ||
author: Swift Navigation Inc. | ||
maintainer: Mark Fine <dev@swiftnav.com> | ||
copyright: Copyright (C) 2015 Swift Navigation, Inc. | ||
category: Network | ||
build-type: Simple | ||
cabal-version: >= 1.22 | ||
extra-source-files: README.md | ||
description: | ||
Haskell bindings for Swift Navigation Binary Protocol (SBP), a fast, | ||
simple, and minimal binary protocol for communicating with Swift | ||
devices. It is the native binary protocol used by the Piksi GPS | ||
receiver to transmit solutions, observations, status and debugging | ||
messages, as well as receive messages from the host operating | ||
system, such as differential corrections and the almanac. | ||
|
||
source-repository head | ||
type: git | ||
location: git@github.com:swift-nav/libsbp.git | ||
|
||
library | ||
exposed-modules: SwiftNav.CRC16 | ||
, SwiftNav.SBP | ||
other-modules: SwiftNav.SBP.Msg | ||
, SwiftNav.SBP.TH | ||
, SwiftNav.SBP.Types | ||
, SwiftNav.SBP.Acquisition | ||
, SwiftNav.SBP.Bootload | ||
, SwiftNav.SBP.ExtEvents | ||
, SwiftNav.SBP.FileIo | ||
, SwiftNav.SBP.Flash | ||
, SwiftNav.SBP.Gnss | ||
, SwiftNav.SBP.Imu | ||
, SwiftNav.SBP.Logging | ||
, SwiftNav.SBP.Navigation | ||
, SwiftNav.SBP.Ndb | ||
, SwiftNav.SBP.Observation | ||
, SwiftNav.SBP.Piksi | ||
, SwiftNav.SBP.Settings | ||
, SwiftNav.SBP.System | ||
, SwiftNav.SBP.Tracking | ||
, SwiftNav.SBP.User | ||
default-language: Haskell2010 | ||
hs-source-dirs: src | ||
ghc-options: -Wall | ||
build-depends: aeson | ||
, array | ||
, base >= 4.8 && < 5 | ||
, base64-bytestring | ||
, basic-prelude | ||
, binary | ||
, bytestring | ||
, data-binary-ieee754 | ||
, lens | ||
, lens-aeson | ||
, monad-loops | ||
, template-haskell | ||
, text | ||
, unordered-containers | ||
|
||
executable sbp2json | ||
hs-source-dirs: main | ||
main-is: SBP2JSON.hs | ||
ghc-options: -threaded -rtsopts -with-rtsopts=-N -Wall | ||
build-depends: aeson | ||
, base | ||
, basic-prelude | ||
, binary-conduit | ||
, bytestring | ||
, conduit | ||
, conduit-extra | ||
, resourcet | ||
, sbp | ||
default-language: Haskell2010 | ||
|
||
executable json2sbp | ||
hs-source-dirs: main | ||
main-is: JSON2SBP.hs | ||
ghc-options: -threaded -rtsopts -with-rtsopts=-N -Wall | ||
build-depends: aeson | ||
, base | ||
, basic-prelude | ||
, binary-conduit | ||
, conduit | ||
, conduit-extra | ||
, resourcet | ||
, sbp | ||
default-language: Haskell2010 | ||
|
||
executable sbp2yaml | ||
hs-source-dirs: main | ||
main-is: SBP2YAML.hs | ||
ghc-options: -threaded -rtsopts -with-rtsopts=-N -Wall | ||
build-depends: base | ||
, basic-prelude | ||
, binary-conduit | ||
, bytestring | ||
, conduit | ||
, conduit-extra | ||
, resourcet | ||
, sbp | ||
, yaml | ||
default-language: Haskell2010 | ||
|
||
test-suite test | ||
type: exitcode-stdio-1.0 | ||
hs-source-dirs: test | ||
main-is: Test.hs | ||
other-modules: Test.SwiftNav.CRC16 | ||
build-depends: aeson | ||
, base | ||
, base64-bytestring | ||
, basic-prelude | ||
, bytestring | ||
, QuickCheck | ||
, sbp | ||
, tasty | ||
, tasty-hunit | ||
, tasty-quickcheck | ||
ghc-options: -threaded -rtsopts -with-rtsopts=-N -Wall | ||
default-language: Haskell2010 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,3 @@ | ||
resolver: lts-6.35 | ||
flags: {} | ||
packages: | ||
- '.' | ||
extra-deps: [] | ||
pvp-bounds: lower | ||
- . |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,3 @@ | ||
resolver: lts-8.23 | ||
flags: {} | ||
resolver: lts-8.24 | ||
packages: | ||
- '.' | ||
extra-deps: [] | ||
pvp-bounds: lower | ||
- . |