QuasiQuotation library for programmatic generation of Javascript code. (http://www.haskell.org/haskellwiki/Jmacro)
#1Support ghc-7.10
Here is a patch:
hunk ./Language/Javascript/JMacro/QQ.hs 1 -{-# LANGUAGE FlexibleInstances, UndecidableInstances, OverlappingInstances, TypeFamilies, TemplateHaskell, QuasiQuotes, RankNTypes, GADTs #-} +{-# LANGUAGE CPP, FlexibleInstances, UndecidableInstances, OverlappingInstances, TypeFamilies, TemplateHaskell, QuasiQuotes, RankNTypes, GADTs #-}
{- | hunk ./Language/Javascript/JMacro/QQ.hs 108 antiIdents ss x = foldr antiIdent x ss
fixIdent :: String -> String +fixIdent "" = "x" fixIdent css@(c:) | isUpper c = '_' : escapeDollar css | otherwise = escapeDollar css hunk ./Language/Javascript/JMacro/QQ.hs 264 lexeme :: JMParser a -> JMParser a lexeme = P.lexeme lexer
+#if !MIN_VERSION_base(4,8,0) (<) :: Monad m => m b -> m a -> m b x < y = do xr <- x hunk ./Language/Javascript/JMacro/QQ.hs 270 _ <- y return xr +#endif
parseJM :: String -> Either ParseError JStat parseJM s = BlockStat <$> runParser jmacroParser () "" s hunk ./Language/Javascript/JMacro/TypeCheck.hs 1 -{-# LANGUAGE GeneralizedNewtypeDeriving, FlexibleInstances, PatternGuards, RankNTypes #-} +{-# LANGUAGE GeneralizedNewtypeDeriving, FlexibleContexts, FlexibleInstances, PatternGuards, RankNTypes #-}
module Language.Javascript.JMacro.TypeCheck where
Here is a patch:
- description updated
Uploading files here doesn't seem to work.
And it doesn't recognize urls!
👍
- status set to closed