Add capture in function name

This commit is contained in:
Freezeboy 2015-07-28 19:47:41 +02:00
parent 3f538b547d
commit 116d7bf22b

View File

@ -268,6 +268,7 @@ instance (KnownSymbol sym, HasJS sublayout)
javascriptFor Proxy req =
javascriptFor (Proxy :: Proxy sublayout) $
req & reqUrl.path <>~ [Segment (Cap str) []]
& funcName %~ (++ ["by", str])
where str = symbolVal (Proxy :: Proxy sym)