Source

NXT / NXT.cabal

Name:                NXT
Version:             0.2.0
Synopsis:            A Haskell interface to Lego Mindstorms NXT
Description:         A Haskell interface to Lego Mindstorms NXT over Bluetoooth. It supports direct commands, messages and
                     many sensors (also unofficial). It has also support for a simple message-based control of a NXT brick
                     via remotely executed program (basic NXC code included).
                     .
                     It contains two simple programs: @nxt-upload@ for uploading files to a NXT brick and @nxt-shutdown@ for
                     remote shutdown of a NXT brick.
                     .
                     It works on Linux, Mac OS X and Windows.
                     .
                     Feel free to contribute additional features, interfaces for more sensors and propose or write other
                     (example) programs.
License:             LGPL-3
License-file:        LICENSE
Author:              Mitar Milutinovic
Maintainer:          mitar.haskell@tnode.com
Copyright:           (c) 2011 Mitar Milutinovic
Category:            Robotics
Build-type:          Simple
Cabal-version:       >= 1.10
Stability:           experimental
Homepage:            http://mitar.tnode.com
Extra-source-files:  remote/remote.rxe,
                     remote/remote.nxc,
                     ffi/blue.h

Library
  Exposed-modules:     Robotics.NXT,
                       Robotics.NXT.MotorControl,
                       Robotics.NXT.Remote,
                       Robotics.NXT.Sensor.Compass,
                       Robotics.NXT.Sensor.Ultrasonic
  Build-depends:       base >= 4.3 && < 5,
                       mtl >= 1.1 && < 3,
                       bytestring >= 0.9 && < 1,
                       time >= 1.1 && < 2,
                       serialport >= 0.4.3 && < 1
  Other-modules:       Robotics.NXT.Data,
                       Robotics.NXT.Errors,
                       Robotics.NXT.Protocol,
                       Robotics.NXT.Types,
                       Robotics.NXT.Internals,
                       Robotics.NXT.Externals,
                       Robotics.NXT.BluetoothUtils
  HS-source-dirs:      lib
  GHC-options:         -Wall
  GHC-prof-options:    -Wall
  GHC-shared-options:  -Wall
  Default-language:    Haskell2010

  if !os(windows)
    Build-depends:     unix >= 2.4 && < 3

  if os(linux)
    C-sources:         ffi/blue.c
    Includes:          ffi/blue.h
    Extra-libraries:   bluetooth

Source-repository head
  type:                mercurial
  location:            https://bitbucket.org/mitar/nxt

Executable nxt-shutdown
  Main-is:             Shutdown.hs
  HS-source-dirs:      src
  Build-depends:       base >= 4.3 && < 5,
                       mtl >= 1.1 && < 3,
                       NXT == 0.2.0
  GHC-options:         -Wall
  Default-language:    Haskell2010

Executable nxt-status
  Main-is:             Status.hs
  HS-source-dirs:      src
  Build-depends:       base >= 4.3 && < 5,
                       mtl >= 1.1 && < 3,
                       NXT == 0.2.0
  GHC-options:         -Wall
  Default-language:    Haskell2010

Executable nxt-upload
  Main-is:             UploadFiles.hs
  HS-source-dirs:      src
  Build-depends:       base >= 4.3 && < 5,
                       mtl >= 1.1 && < 3,
                       bytestring >= 0.9 && < 1,
                       filepath >= 1.1 && < 2,
                       NXT == 0.2.0
  GHC-options:         -Wall
  Default-language:    Haskell2010

Test-suite nxt-tests
  Type:                exitcode-stdio-1.0
  X-uses-tf:           true
  Build-depends:       base >= 4,
                       HUnit >= 1.2 && < 2,
                       QuickCheck >= 2.4 && < 3,
                       test-framework >= 0.4 && < 1,
                       test-framework-quickcheck2 >= 0.2 && < 1,
                       test-framework-hunit >= 0.2 && < 1,
                       mtl >= 1.1 && < 3,
                       time >= 1.2 && < 2,
                       bytestring >= 0.9 && < 1.0,
                       filepath >= 1.2 && < 2,
                       NXT == 0.2.0
  GHC-options:         -Wall -rtsopts
  Default-language:    Haskell2010
  HS-source-dirs:      tests
  Main-is:             Main.hs
  Other-modules:       Robotics.NXT.Basic
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.