packages feed

netwire-input-glfw-0.0.3: netwire-input-glfw.cabal

-- Initial netwire-input-glfw.cabal generated by cabal init.  For further 
-- documentation, see http://haskell.org/cabal/users-guide/

name:                netwire-input-glfw
version:             0.0.3
synopsis:            GLFW instance of netwire-input
description:         This package contains the necessary glue to allow the use
                     of wires from the netwire-input package. In general, the types
                     associated here should be used only sparingly to plumb the input
                     state through your netwire program. Otherwise, the state should
                     not be modified directly.
homepage:            https://www.github.com/Mokosha/netwire-input-glfw
license:             MIT
license-file:        LICENSE
author:              Pavel Krajcevski
maintainer:          Krajcevski@gmail.com
copyright:           Pavel Krajcevski, 2014
category:            Game
build-type:          Simple
extra-source-files:  examples/Cursor.hs README.md
cabal-version:       >=1.10

flag                 examples
  description:       Build examples
  default:           False

source-repository head
  type:           git
  location:       https://github.com/Mokosha/netwire-input-glfw

library
  default-extensions:  FlexibleInstances,
                       TypeSynonymInstances,
                       MultiParamTypeClasses,
                       InstanceSigs
  exposed-modules:     FRP.Netwire.Input.GLFW
  -- other-modules:       
  build-depends:       base >=4.6 && <4.8,
                       netwire-input,
                       containers,
                       GLFW-b,
                       stm,
                       mtl
  hs-source-dirs:      lib
  default-language:    Haskell2010

--------------------------------------------------------------------------------
--
-- Examples
--
--------------------------------------------------------------------------------

executable glfw-input-example
  main-is:        Cursor.hs
  hs-source-dirs: examples
  ghc-options:    -Wall -rtsopts -O3

  if flag(examples)
    build-depends:  base > 4.5,
                    netwire >= 5,
                    netwire-input,
                    netwire-input-glfw,
                    OpenGL,
                    GLFW-b,
                    transformers,
                    array,
                    bytestring,
                    mtl,
                    containers,
                    directory,
                    filepath
  else
    buildable:      False