Strange behaviour in Lucius route interpolation

12 views
Skip to first unread message

Tristan Seligmann

unread,
Apr 10, 2012, 11:04:39 PM4/10/12
to yeso...@googlegroups.com
I've encountered some strange behaviour with route interpolation in
Lucius that I'm at a loss to understand / explain. If I interpolate a
route using @{WhateverR} in a lucius template, it works fine... except
if I try to do it in default-layout.lucius; in that case, I get an
obscure error like this:

Error handler errored out: InternalError "DerefBranch (DerefIdent
(Ident \"StaticR\")) (DerefIdent (Ident \"img_noun_project_95_svg\")):
expected CDUrl"

Anyone have any idea what's going on with this?
--
mithrandi, i Ainil en-Balandor, a faer Ambar

dag.od...@gmail.com

unread,
Apr 12, 2012, 1:16:40 PM4/12/12
to yeso...@googlegroups.com

Could you show your lucius code? Perhaps you're missing an url() around it?

Michael Snoyman

unread,
Apr 14, 2012, 11:46:15 PM4/14/12
to yeso...@googlegroups.com
This is a limitation of our current reload mode setup. What you need
to do is resave the Foundation.hs file to let GHC know that it needs
to reanalyze the identifiers it needs to provide to the Lucius file.
Reply all
Reply to author
Forward
0 new messages