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
25 changes: 24 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
@@ -1 +1,24 @@
language: haskell
language: c

sudo: false
cache:
directories:
- $HOME/.stack/

matrix:
include:
- env: CABALVER=1.22 GHCVER=7.10.3
addons: {apt: {packages: [cabal-install-1.22,ghc-7.10.3],sources: [hvr-ghc]}}

before_install:
- mkdir -p ~/.local/bin
- export PATH=~/.local/bin:$PATH
- travis_retry curl -L https://www.stackage.org/stack/linux-x86_64 | tar -xzO --wildcards '*/stack' > ~/.local/bin/stack
- chmod a+x ~/.local/bin/stack

install:
- stack setup --no-terminal
- stack build --only-snapshot --no-terminal

script:
- stack test --no-terminal
18 changes: 9 additions & 9 deletions spoty.cabal
Original file line number Diff line number Diff line change
Expand Up @@ -38,15 +38,15 @@ extra-source-files: Examples/Search.hs Examples/Albums.hs CHANGELOG
library
exposed-modules: Utils.Spoty, Utils.Spoty.Types
build-depends:
aeson >= 0.7.0.6 && < 0.8.1,
base >= 4.6 && < 4.8,
bytestring >= 0.10 && < 0.11,
lens >= 4.4 && < 4.5,
lens-aeson >= 1 && < 1.1,
pipes >= 4.1 && < 4.2,
text >= 0.11 && < 1.2,
unordered-containers >= 0.2.3 && < 0.3,
wreq >= 0.2 && < 0.3
aeson,
base,
bytestring,
lens,
lens-aeson,
pipes,
text,
unordered-containers,
wreq

hs-source-dirs: src
default-language: Haskell2010
Expand Down
1 change: 0 additions & 1 deletion src/Utils/Spoty.hs
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ fetchOne, fetchAll
)
where

import Control.Applicative ((<$>))
import Control.Exception (throw)
import Control.Lens
import Control.Monad (when)
Expand Down
3 changes: 1 addition & 2 deletions src/Utils/Spoty/Types.hs
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@

module Utils.Spoty.Types where

import Control.Applicative ((<$>), (<*>))
import Control.Lens (makeFields)
import Control.Monad (MonadPlus(..), mzero)
import Data.Aeson
Expand Down Expand Up @@ -262,7 +261,7 @@ instance FromJSON AlbumDetails where
data Album
= Album
{
_albumType :: T.Text,
_albumAlbumType :: T.Text,
_albumAvailableMarkets :: [T.Text],
_albumExternalURLs :: [ExternalURL],
_albumHref :: T.Text,
Expand Down
35 changes: 35 additions & 0 deletions stack.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
# This file was automatically generated by stack init
# For more information, see: http://docs.haskellstack.org/en/stable/yaml_configuration/

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

# Local packages, usually specified by relative directory name
packages:
- '.'
# Packages to be pulled from upstream that are not in the resolver (e.g., acme-missiles-0.3)
extra-deps: []

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

# Extra package databases containing global packages
extra-package-dbs: []

# Control whether we use the GHC we find on the path
# system-ghc: true

# Require a specific version of stack, using version ranges
# require-stack-version: -any # Default
# require-stack-version: >= 1.0.0

# Override the architecture used by stack, especially useful on Windows
# arch: i386
# arch: x86_64

# Extra directories used by stack for building
# extra-include-dirs: [/path/to/dir]
# extra-lib-dirs: [/path/to/dir]

# Allow a newer minor version of GHC than the snapshot specifies
# compiler-check: newer-minor