@@ -13,16 +13,21 @@ import Data.Text (Text)
1313-- import Data.Time (ZonedTime)
1414import GHC.Generics (Generic)
1515import Prelude hiding (id)
16+import Control.DeepSeq
1617
1718data Metadata = Metadata {
1819 result_type :: Text
1920 } deriving (Eq, Show, Typeable, Data, Generic)
2021
22+instance NFData Metadata
23+
2124data Geo = Geo {
2225 type_ :: Text
2326 , coordinates :: (Double, Double)
2427 } deriving (Eq, Show, Typeable, Data, Generic)
2528
29+instance NFData Geo
30+
2631data Story = Story {
2732 from_user_id_str :: Text
2833 , profile_image_url :: Text
@@ -40,6 +45,8 @@ data Story = Story {
4045 , source :: Text
4146 } deriving (Show, Typeable, Data, Generic)
4247
48+instance NFData Story
49+
4350data Result = Result {
4451 results :: [Story]
4552 , max_id :: Int64
@@ -53,3 +60,5 @@ data Result = Result {
5360 , max_id_str :: Text
5461 , query :: Text
5562 } deriving (Show, Typeable, Data, Generic)
63+
64+instance NFData Result