Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

bump to 0.0.3; snap to 0.9

  • Loading branch information...
commit 508494e940ad3592ceb35e547bf7dfd3df4d7678 1 parent 8c9e7ee
@freizl freizl authored
View
1  .gitignore
@@ -2,3 +2,4 @@ dist
*.o
*.hi
log
+cabal-dev
View
14 Makefile
@@ -1,8 +1,6 @@
-
-HC=ghc
-
DIST=dist
+CBD=cabal-dev
default: build
@@ -10,20 +8,20 @@ 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
View
14 snaplet-i18n.cabal
@@ -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
@@ -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
View
3  src/Snap/Snaplet/I18N.hs
@@ -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)
Please sign in to comment.
Something went wrong with that request. Please try again.