Skip to content

Commit

Permalink
Update config & support default extensions
Browse files Browse the repository at this point in the history
  • Loading branch information
nodew committed Jul 20, 2022
1 parent 63a2f5c commit 8257ab6
Show file tree
Hide file tree
Showing 8 changed files with 9 additions and 73 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:
asset_name: stargaze-linux-amd64
- os: windows-latest
artifact_name: stargaze.exe
asset_name: stargaze-windows-amd64
asset_name: stargaze-windows-amd64.exe
- os: macos-latest
artifact_name: stargaze
asset_name: stargaze-macos-amd64
Expand Down
5 changes: 5 additions & 0 deletions package.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,11 @@ extra-source-files:

description: Please see the README on GitHub at <https://github.com/nodew/stargaze-cli#readme>

default-extensions:
- OverloadedStrings
- LambdaCase
- DeriveGeneric

dependencies:
- base >= 4.7 && < 5
- aeson
Expand Down
2 changes: 0 additions & 2 deletions src/Stargaze/Aggregate.hs
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
{-# LANGUAGE OverloadedStrings #-}

module Stargaze.Aggregate
( aggregate,
MergeMap (..),
Expand Down
2 changes: 0 additions & 2 deletions src/Stargaze/Command.hs
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE LambdaCase #-}
module Stargaze.Command where

import Data.Text (Text)
Expand Down
1 change: 0 additions & 1 deletion src/Stargaze/Manage.hs
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE TemplateHaskell #-}

module Stargaze.Manage
Expand Down
3 changes: 0 additions & 3 deletions src/Stargaze/Types.hs
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE OverloadedStrings #-}

module Stargaze.Types where

import Control.Monad (MonadPlus (mzero))
Expand Down
64 changes: 2 additions & 62 deletions stack.yaml
Original file line number Diff line number Diff line change
@@ -1,67 +1,7 @@
# This file was automatically generated by 'stack init'
#
# Some commonly used options have been documented as comments in this file.
# For advanced use and comprehensive documentation of the format, please see:
# https://docs.haskellstack.org/en/stable/yaml_configuration/

# Resolver to choose a 'specific' stackage snapshot or a compiler version.
# A snapshot resolver dictates the compiler version and the set of packages
# to be used for project dependencies. For example:
#
# resolver: lts-3.5
# resolver: nightly-2015-09-21
# resolver: ghc-7.10.2
#
# The location of a snapshot can be provided as a file or url. Stack assumes
# a snapshot provided as a file might change, whereas a url resource does not.
#
# resolver: ./custom-snapshot.yaml
# resolver: https://example.com/snapshots/2018-01-01.yaml

resolver: lts-19.15

# User packages to be built.
# Various formats can be used as shown in the example below.
#
# packages:
# - some-directory
# - https://example.com/foo/bar/baz-0.0.2.tar.gz
# subdirs:
# - auto-update
# - wai
packages:
- .
# Dependency packages to be pulled from upstream that are not in the resolver.
# These entries can reference officially published versions as well as
# forks / in-progress versions pinned to a git hash. For example:
#
# extra-deps:
# - acme-missiles-0.3
# - git: https://github.com/commercialhaskell/stack.git
# commit: e7b331f14bcffb8367cd58fbfc8b40ec7642100a
#
# 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: ">=2.7"
#
# 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
ghc-options:
"$everything": -split-sections
3 changes: 1 addition & 2 deletions stack.yaml.lock
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,4 @@ snapshots:
size: 618952
url: https://raw.githubusercontent.com/commercialhaskell/stackage-snapshots/master/lts/19/15.yaml
sha256: 82e5ccb47b068521de4055034e8aa278eab430b586881d9cc29ba8b382ce3253
original:
url: https://raw.githubusercontent.com/commercialhaskell/stackage-snapshots/master/lts/19/15.yaml
original: lts-19.15

0 comments on commit 8257ab6

Please sign in to comment.