-
Notifications
You must be signed in to change notification settings - Fork 76
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added support in mkMessage for context parsing #282
Added support for lts versions 22, 21, 20 and removed older ones
- Loading branch information
1 parent
540e50d
commit 4d06e13
Showing
5 changed files
with
104 additions
and
39 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,26 @@ | ||
{-# LANGUAGE MultiParamTypeClasses #-} | ||
{-# LANGUAGE OverloadedStrings #-} | ||
{-# LANGUAGE TemplateHaskell #-} | ||
{-# LANGUAGE TypeFamilies #-} | ||
|
||
module Text.Shakespeare.I18NSpec | ||
( spec | ||
) where | ||
|
||
import Data.Text (Text) | ||
import Text.Shakespeare.I18N | ||
import Language.Haskell.TH.Syntax (Lift(..)) | ||
|
||
spec :: Monad m => m () | ||
spec = return () | ||
|
||
data Test = Test | ||
class Lift master => YesodSubApp master where | ||
data YesodSubAppData master :: * | ||
|
||
newtype SubApp master = SubApp | ||
{ | ||
getOrdering :: Ordering | ||
} | ||
|
||
mkMessage "(YesodSubApp master) => SubApp master" "test-messages" "en" | ||
|
||
mkMessage "Test" "test-messages" "en" |