Skip to content

Commit

Permalink
add a comment
Browse files Browse the repository at this point in the history
  • Loading branch information
shmish111 committed Oct 16, 2020
1 parent 4615a4f commit 69c916d
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions playground-common/src/Gist.hs
Expand Up @@ -28,11 +28,15 @@ module Gist

import Auth.Types (Token, TokenProvider (Github))
import Data.Aeson (FromJSON, GFromJSON, ToJSON, Value, Zero, genericParseJSON, object, parseJSON,
<<<<<<< HEAD
<<<<<<< HEAD
toJSON, withObject, (.!=), (.:), (.:?), (.=))
=======
toJSON, withObject, (.:), (.:?), (.=), (.!=))
>>>>>>> Save entire workspace when saving to gist
=======
toJSON, withObject, (.!=), (.:), (.:?), (.=))
>>>>>>> add a comment
import Data.Aeson.Casing (aesonPrefix, snakeCase)
import Data.Aeson.Types (Parser)
import Data.Bifunctor (bimap)
Expand Down Expand Up @@ -149,10 +153,7 @@ instance FromJSON Gist where
_gistTruncated <- o .: "truncated"
_gistCreatedAt <- o .: "created_at"
_gistUpdatedAt <- o .: "updated_at"
<<<<<<< HEAD
-- playground gists will always have a description but to avoid breaking with non-playground gists we change null to empty string
=======
>>>>>>> Save entire workspace when saving to gist
_gistDescription <- o .:? "description" .!= ""
pure Gist {..}

Expand Down

0 comments on commit 69c916d

Please sign in to comment.