nsis 0.1.2 → 0.2
raw patch · 3 files changed
+17/−3 lines, 3 filesPVP ok
version bump matches the API change (PVP)
API changes (from Hackage documentation)
- Development.NSIS: (%&&, %||) :: Exp Bool -> Exp Bool -> Exp Bool
- Development.NSIS: (%<=, %>, %>=, %<) :: Exp Int -> Exp Int -> Exp Bool
- Development.NSIS: (%==, %/=) :: Exp a -> Exp a -> Exp Bool
- Development.NSIS: installIcon, uninstallIcon :: Exp FilePath -> Action ()
- Development.NSIS: mutableInt, constantInt :: String -> Exp Int -> Action (Exp Int)
- Development.NSIS: mutableInt_, constantInt_ :: Exp Int -> Action (Exp Int)
- Development.NSIS: mutableStr, constantStr :: String -> Exp String -> Action (Exp String)
- Development.NSIS: mutableStr_, constantStr_ :: Exp String -> Action (Exp String)
- Development.NSIS: true, false :: Exp Bool
+ Development.NSIS: (%&&) :: Exp Bool -> Exp Bool -> Exp Bool
+ Development.NSIS: (%/=) :: Exp a -> Exp a -> Exp Bool
+ Development.NSIS: (%<) :: Exp Int -> Exp Int -> Exp Bool
+ Development.NSIS: (%<=) :: Exp Int -> Exp Int -> Exp Bool
+ Development.NSIS: (%==) :: Exp a -> Exp a -> Exp Bool
+ Development.NSIS: (%>) :: Exp Int -> Exp Int -> Exp Bool
+ Development.NSIS: (%>=) :: Exp Int -> Exp Int -> Exp Bool
+ Development.NSIS: (%||) :: Exp Bool -> Exp Bool -> Exp Bool
+ Development.NSIS: bool :: Bool -> Exp Bool
+ Development.NSIS: constantInt :: String -> Exp Int -> Action (Exp Int)
+ Development.NSIS: constantInt_ :: Exp Int -> Action (Exp Int)
+ Development.NSIS: constantStr :: String -> Exp String -> Action (Exp String)
+ Development.NSIS: constantStr_ :: Exp String -> Action (Exp String)
+ Development.NSIS: false :: Exp Bool
+ Development.NSIS: installIcon :: Exp FilePath -> Action ()
+ Development.NSIS: int :: Int -> Exp Int
+ Development.NSIS: mutableInt :: String -> Exp Int -> Action (Exp Int)
+ Development.NSIS: mutableInt_ :: Exp Int -> Action (Exp Int)
+ Development.NSIS: mutableStr :: String -> Exp String -> Action (Exp String)
+ Development.NSIS: mutableStr_ :: Exp String -> Action (Exp String)
+ Development.NSIS: str :: String -> Exp String
+ Development.NSIS: true :: Exp Bool
+ Development.NSIS: uninstallIcon :: Exp FilePath -> Action ()
Files
- Development/NSIS.hs +1/−0
- Development/NSIS/Sugar.hs +14/−1
- nsis.cabal +2/−2
Development/NSIS.hs view
@@ -43,6 +43,7 @@ (?), (%&&), (%||), Label, newLabel, label, goto, -- ** Expressions+ str, int, bool, (%==), (%/=), (%<=), (%<), (%>=), (%>), true, false, not_, strRead, strShow,
Development/NSIS/Sugar.hs view
@@ -13,6 +13,7 @@ import Data.Monoid import Data.String import Data.Typeable+import Control.Applicative import Control.Monad import Control.Monad.Trans.State import Data.Generics.Uniplate.Data@@ -29,7 +30,7 @@ -- | Monad in which installers are defined. A useful command to start with is 'section'. newtype Action a = Action (State S a)- deriving (Functor, Monad)+ deriving (Functor, Monad, Applicative) -- | A 'Value', only used by 'Exp', which can be produced using 'return'.@@ -422,6 +423,18 @@ true, false :: Exp Bool false = return $ Value [] true = return $ Value [Literal "1"]++-- | Lift a 'Bool' into an 'Exp'+bool :: Bool -> Exp Bool+bool x = if x then true else false++-- | Lift a 'String' into an 'Exp'+str :: String -> Exp String+str = return . Value . lit++-- | Lift an 'Int' into an 'Exp'+int :: Int -> Exp Int+int = return . Value . lit . show -- | Return the length of a string, @strLength \"test\" '%==' 4@.
nsis.cabal view
@@ -1,14 +1,14 @@ cabal-version: >= 1.6 build-type: Simple name: nsis-version: 0.1.2+version: 0.2 -- license is GPL v2 only license: GPL license-file: LICENSE category: Development author: Neil Mitchell <ndmitchell@gmail.com> maintainer: Neil Mitchell <ndmitchell@gmail.com>-copyright: Neil Mitchell 2012+copyright: Neil Mitchell 2012-2013 synopsis: DSL for producing Windows Installer using NSIS. description: NSIS (Nullsoft Scriptable Install System, <http://nsis.sourceforge.net/>) is a tool that allows programmers