Re: [Yesod] Newbie question regarding upgrade to 1.2: addScript

20 views
Skip to first unread message

Michael Snoyman

unread,
Jun 6, 2013, 6:34:41 PM6/6/13
to yeso...@googlegroups.com
It's best to include the actual error message you received when asking these kinds of questions.


On Thu, Jun 6, 2013 at 12:52 PM, João Cristóvão <jmacri...@gmail.com> wrote:
Hi,

A newbie question, I was trying out Yesod 1.2 (porting a 1.1 application), and was able to fix almost everything, except this, in Foundation.hs:

        pc <- widgetToPageContent $ do
            $(combineStylesheets 'StaticR
                [ css_bootstrap_css
                ])
            addScript $ StaticR js_bootstrap_js
            $(widgetFile "default-layout")
        hamletToRepHtml $(hamletFile "templates/default-layout-wrapper.hamlet")

The addScript seems to no longer accept this syntax, but I can't figure out what I should use instead.

Any clues?
Tks

--
You received this message because you are subscribed to the Google Groups "Yesod Web Framework" group.
To unsubscribe from this group and stop receiving emails from it, send an email to yesodweb+u...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

João Cristóvão

unread,
Jun 7, 2013, 7:44:44 AM6/7/13
to yeso...@googlegroups.com
You're absolutely right Michael, sorry.

But I guess this was really a rookie mistake, probably a dependency problem: I modified some other unrelated files in the meantime, and voilà, problem disappeared.

Sorry for the inconvenience.


2013/6/6 Michael Snoyman <mic...@snoyman.com>
Reply all
Reply to author
Forward
0 new messages