Skip to content

Commit

Permalink
bump to 0.0.3; snap to 0.9
Browse files Browse the repository at this point in the history
  • Loading branch information
freizl committed Aug 28, 2012
1 parent 8c9e7ee commit 508494e
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 15 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,4 @@ dist
*.o
*.hi
log
cabal-dev
14 changes: 6 additions & 8 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,29 +1,27 @@


HC=ghc

DIST=dist
CBD=cabal-dev

default: build

clean:
rm -rf $(DIST)

conf:
cabal configure
$(CBD) configure

build: conf
cabal build
$(CBD) build
hlint src/

rebuild: clean build

install: build
cabal install
$(CBD) install

reinstall: clean install
cabal haddock
cabal sdist
$(CBD) haddock
$(CBD) sdist

test-demo:
cd test/ && runghc snap.hs -b 127.0.0.1 -p 8888
Expand Down
14 changes: 7 additions & 7 deletions snaplet-i18n.cabal
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
-- http://www.haskell.org/cabal/release/cabal-latest/doc/users-guide/authors.html#pkg-descr.
-- The name of the package.
Name: snaplet-i18n
Version: 0.0.2.1
Version: 0.0.3
Description: A light weight i18n snaplet.
Synopsis: snaplet-i18n
Homepage: https://github.com/HaskellCNOrg/snaplet-i18n
Expand Down Expand Up @@ -35,17 +35,17 @@ Library

Build-Depends:
base >= 4 && < 5,
snap >= 0.8 && < 0.9,
snap-core >= 0.8 && < 0.9,
snap >= 0.9.1 && < 0.10,
snap-core == 0.9.0,
xmlhtml == 0.2.0,
heist == 0.8.1,
bytestring >= 0.9 && < 1.0,
data-lens-template >= 2.1 && < 2.2,
data-lens >= 2.0 && < 2.1,
filepath >= 1.2 && < 1.3,
filepath >= 1.2 && < 1.4,
directory >= 1.1 && < 1.2,
configurator >= 0.2 && < 0.3,
text >= 0.11 && < 0.12,
xmlhtml >= 0.1.7 && < 0.2,
heist >= 0.8 && < 0.9
text >= 0.11 && < 0.12

if impl(ghc >= 6.12.0)
ghc-options: -Wall -fwarn-tabs -funbox-strict-fields
Expand Down
3 changes: 3 additions & 0 deletions src/Snap/Snaplet/I18N.hs
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,9 @@ i18nSpliceAttr = "name"
-- | Splices just wrap value fonud at l10n message.
-- When it is used for wrap around other elements, a.k.a children is not empty,
-- binding `i18nValue`.
-- e.g.
-- <i18n name="hello" />
-- <i18n name="hello"><p><i18nValue/></p></i18n>
--
-- FIXME: Turns out that it is not possible to fail at compilation if value is Nothing but runtime.
i18nSplice :: HasI18N b => Splice (Handler b b)
Expand Down

0 comments on commit 508494e

Please sign in to comment.