Zwróć JSON z obsługi yesod

Próbuję napisać najprostszą odpowiedź JSON z modułu obsługi Yesod, ale mam jakiś naprawdę głupi błąd (najwyraźniej). Mój kod obsługi to:

-- HelloYesod/Handler/Echo.hs
module Handler.Echo where

import           Data.Aeson      (object, (.=))
import qualified Data.Aeson      as J
import           Data.Text       (pack)
import           Import
import           Yesod.Core.Json (returnJson)

getEchoR :: String -> Handler RepJson
getEchoR theText = do
  let json = object $ ["data" .= "val"]
  return json

Błąd jest następujący:

Handler/Echo.hs:12:10:
    Couldn't match expected type `RepJson' with actual type `Value'
    In the first argument of `return', namely `json'
    In a stmt of a 'do' block: return json
    In the expression:
      do { let json = object $ ...;
           return json }
Build failure, pausing...

questionAnswers(1)

yourAnswerToTheQuestion