packages feed

augeas 0.1.1 → 0.1.2

raw patch · 2 files changed

+54/−3 lines, 2 files

Files

+ System/AugeasHsc.hsc view
@@ -0,0 +1,48 @@+-- file: Augeas.hsc++-- Haskell bindings for the Augeas library+-- Copyright (c) 2009, Jude Nagurney+--+-- This program is free software; you can redistribute it and/or modify it +-- under the terms of the GNU General Public License as published by the Free +-- Software Foundation; either version 2 of the License, or (at your option) +-- any later version.+--+-- This program is distributed in the hope that it will be useful, but +-- WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or +-- FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.+--+-- You should have received a copy of the GNU General Public License along with this program; +-- if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, +-- MA 02111-1307 USA+-- +-- Contact the author at +-- jude@pwan.org ++{-# LANGUAGE CPP, ForeignFunctionInterface #-}++module System.AugeasHsc where++import Foreign.C.Types++#include "augeas.h"+++-- ----------------------------------+-- Maps to aug_flags enum in augeas.h+-- ----------------------------------++newtype AugFlag = AugFlag { unAugFlag :: CInt }+        deriving (Eq, Show)++#{enum AugFlag, AugFlag+       , none = AUG_NONE+       , save_backup = AUG_SAVE_BACKUP+       , save_newfile = AUG_SAVE_NEWFILE+       , type_check = AUG_TYPE_CHECK+}+++++
augeas.cabal view
@@ -1,5 +1,5 @@ Name: augeas-Version: 0.1.1+Version: 0.1.2 Synopsis:  A Haskell FFI wrapper for the Augeas API Description: A Haskell FFI wrapper for the Augeas API Author: Jude Nagurney@@ -10,15 +10,18 @@ Build-Type: Custom Category: System Stability: Alpha+HomePage: http://trac.haskell.org/augeas  library          Exposed-Modules: System.Augeas+        Other-Modules: System.AugeasHsc         Build-Depends: base >= 2.0, bytestring >= 0.9.0.1, unix >=2.3.0.0, haskell98         GHC-options: -Wall -fwarn-dodgy-imports  executable "test-haskell-augeas"-        Main-is:               HUnitAug.hs+        Main-is: HUnitAug.hs         Build-Depends: HUnit-        Other-Modules: System.Augeas+        Other-Modules: System.Augeas, System.AugeasHsc         extra-libraries: augeas+