Ryan Monreal
Ryan Monreal

Reputation: 597

Storing a non-String data in Yesod Session?

I want know if it is possible to Store a non-String Data on a session? e.g: is a List.

If not what would be the great suggestion in this. the purpose of this is i have a planning using the Background Worker to do some work and store it in a list.

hope you help me.

Upvotes: 1

Views: 68

Answers (1)

Michael Snoyman
Michael Snoyman

Reputation: 31315

You need to serialize the data to Text somehow. One option is via JSON using the aeson library.

Upvotes: 1

Related Questions