Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion solga/src/Solga.hs
Original file line number Diff line number Diff line change
Expand Up @@ -283,7 +283,7 @@ class Abbreviated a where
type Brief a :: *
type instance Brief a = a
brief :: Brief a -> a
default brief :: a -> a
default brief :: Brief a ~ a => Brief a -> a
brief = id

instance Abbreviated Raw where
Expand Down
3 changes: 1 addition & 2 deletions solga/test/Test.hs
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,6 @@ spec = with (return $ serve testAPI) $ do
resp <- get path
liftIO $ decode (simpleBody resp) `shouldBe` Just (String seg)

deriving instance Generic Value

instance Arbitrary Value where
arbitrary = sized arbJSON
Expand Down Expand Up @@ -133,4 +132,4 @@ instance Arbitrary a => Arbitrary (V.Vector a) where

instance Arbitrary S.Scientific where
arbitrary = S.scientific <$> arbitrary <*> arbitrary
shrink s = map (uncurry S.scientific) $ shrink $ ( S.coefficient s, S.base10Exponent s )
shrink s = map (uncurry S.scientific) $ shrink $ ( S.coefficient s, S.base10Exponent s )
5 changes: 3 additions & 2 deletions stack.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# For more information, see: https://github.com/commercialhaskell/stack/blob/release/doc/yaml_configuration.md

# Specifies the GHC version and set of packages available (e.g., lts-3.5, nightly-2015-09-21, ghc-7.10.2)
resolver: nightly-2016-11-07
resolver: nightly-2017-07-31

# Local packages, usually specified by relative directory name
packages:
Expand All @@ -10,7 +10,8 @@ packages:

# Packages to be pulled from upstream that are not in the resolver (e.g., acme-missiles-0.3)
extra-deps:
- safe-exceptions-0.1.1.0
- swagger2-2.1.4.1
- http-media-0.7.1.1

# Override default flag values for local packages and extra-deps
flags: {}
Expand Down