• About
  • Snapshots
  • LTS
  • Nightly
  • FAQ
  • Blog

sbp

SwiftNav's SBP Library

https://github.com/swift-nav/libsbp

LTS Haskell 23.22:6.2.1
Stackage Nightly 2025-05-17:6.2.1
Latest on Hackage:6.2.1

See all snapshots sbp appears in

MIT licensed by Swift Navigation Inc.
Maintained by Swift Navigation
This version can be pinned in stack with:sbp-6.2.1@sha256:aa2a0e2806405c6949784cce248ae36b5b4ad6aabdde1b3c8974d1498bbcce18,6253

Module documentation for 6.2.1

  • SwiftNav
    • SwiftNav.CRC16
    • SwiftNav.SBP
      • SwiftNav.SBP.Acquisition
      • SwiftNav.SBP.Bootload
      • SwiftNav.SBP.ExtEvents
      • SwiftNav.SBP.FileIo
      • SwiftNav.SBP.Flash
      • SwiftNav.SBP.Gnss
      • SwiftNav.SBP.Imu
      • SwiftNav.SBP.Integrity
      • SwiftNav.SBP.Linux
      • SwiftNav.SBP.Logging
      • SwiftNav.SBP.Mag
      • SwiftNav.SBP.Navigation
      • SwiftNav.SBP.Ndb
      • SwiftNav.SBP.Observation
      • SwiftNav.SBP.Orientation
      • SwiftNav.SBP.Piksi
      • SwiftNav.SBP.Profiling
      • SwiftNav.SBP.Sbas
      • SwiftNav.SBP.Settings
      • SwiftNav.SBP.Signing
      • SwiftNav.SBP.SolutionMeta
      • SwiftNav.SBP.Ssr
      • SwiftNav.SBP.System
      • SwiftNav.SBP.Telemetry
      • SwiftNav.SBP.Tracking
      • SwiftNav.SBP.Types
      • SwiftNav.SBP.User
      • SwiftNav.SBP.Vehicle
Depends on 22 packages(full list with versions):
aeson, aeson-pretty, array, base, base64-bytestring, basic-prelude, binary, binary-conduit, bytestring, cmdargs, conduit, conduit-extra, data-binary-ieee754, lens, lens-aeson, monad-loops, resourcet, sbp, template-haskell, text, time, yaml
Used by 1 package in nightly-2025-05-17(full list with versions):
sbp

SBP Bindings for Haskell

Haskell client for Swift Binary Protocol (SBP).

Requirements

haskell-stack: Instructions here.

Install from Hackage

Available on Hackage as sbp.

The library supports building against Stackage LTS-10. To install from Hackage using stack:

$ stack install --resolver lts-10.10 sbp # (LTS-10)

Note that we explicitly specify the resolvers to use, as installing libsbp may fail to build with more recent resolvers.

Next, install the latest version of sbp available in the snapshots. For example, if the latest version listed in the snapshots is v2.6.3, run:

$ stack install sbp-2.6.3

Building with cabal is possible but not supported and may fail to build.

Setup

To build:

$ stack build

To install:

$ stack install

To test and benchmark:

$ stack test && stack bench

To deploy to Hackage:

$ stack upload

Publishing

To publish to Hackage, use the publish-lower recipe in the Shakefile.hs with LTS-10 stack.yaml:

$ STACK_YAML=stack-lts-10.yaml ./Shakefile.hs publish-lower

References

LICENSE

Copyright © 2015-2021 Swift Navigation Inc.

Stackage is a service provided by the Haskell Foundation │ Originally developed by FP Complete