packages feed

NXT-0.1.3: NXT.cabal

Name:                NXT
Version:             0.1.3
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 best on Linux and it also works on Mac OS X.
                     .
                     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) 2010 Mitar Milutinovic
Category:            Robotics
Build-type:          Simple
Cabal-version:       >= 1.8
Stability:           experimental
Homepage:            http://mitar.tnode.com
Extra-source-files:  remote/remote.rxe,
                     remote/remote.nxc,
                     ffi/blue.h,
                     ffi/initserial.h

Library
  Exposed-modules:     Robotics.NXT,
                       Robotics.NXT.MotorControl,
                       Robotics.NXT.Remote,
                       Robotics.NXT.Sensor.Compass,
                       Robotics.NXT.Sensor.Ultrasonic
  Build-depends:       base >= 4 && < 5,
                       mtl >= 1.1 && < 2,
                       bytestring >= 0.9 && < 1,
                       unix >= 2.4 && < 3,
                       time >= 1.1 && < 2
  Other-modules:       Robotics.NXT.BluetoothUtils,
                       Robotics.NXT.Data,
                       Robotics.NXT.Errors,
                       Robotics.NXT.Protocol,
                       Robotics.NXT.Types,
                       Robotics.NXT.Internals,
                       Robotics.NXT.Externals
  HS-source-dirs:      lib
  C-sources:           ffi/blue.c,
                       ffi/initserial.c
  Includes:            ffi/blue.h,
                       ffi/initserial.h
  GHC-options:         -Wall
  if os(linux)
    Extra-libraries:   bluetooth

Executable nxt-shutdown
  Main-is:             Shutdown.hs
  HS-source-dirs:      src
  Build-depends:       base >= 4 && < 5,
                       mtl >= 1.1 && < 2,
                       NXT == 0.1.3
  GHC-options:         -Wall

Executable nxt-upload
  Main-is:             UploadFiles.hs
  HS-source-dirs:      src
  Build-depends:       base >= 4 && < 5,
                       mtl >= 1.1 && < 2,
                       bytestring >= 0.9 && < 1,
                       filepath >= 1.1 && < 2,
                       NXT == 0.1.3
  GHC-options:         -Wall
  GHC-prof-options:    -Wall
  GHC-shared-options:  -Wall