Skip to content

Commit

Permalink
Start moving files around for hidden internals
Browse files Browse the repository at this point in the history
  • Loading branch information
snoyberg committed Aug 15, 2018
1 parent fecd986 commit 77a5977
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 18 deletions.
2 changes: 1 addition & 1 deletion subs/convert/convert-old-stackage.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,4 @@ do
fi
done

stack build :convert-old-stackage --exec convert-old-stackage
stack build --flag pantry:convert-old-stackage pantry:convert-old-stackage --exec convert-old-stackage
33 changes: 16 additions & 17 deletions subs/pantry/package.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
name: pantry
version: 0.1.0.0
# FIXME add normal stuff, ChangeLog, README.md as well

extra-source-files:
- attic/package-0.1.2.3.tar.gz
Expand Down Expand Up @@ -56,28 +57,26 @@ library:
source-dirs: src/
exposed-modules:
- Pantry
# FIXME make these exports unnecessary
- Pantry.Types
- Pantry.StaticSHA256
- Pantry.Storage
- Pantry.SHA256
- Data.Aeson.Extended
- Pantry.StaticBytes
other-modules:
- Hackage.Security.Client.Repository.HttpLib.HttpClient
- Pantry.Archive
- Pantry.Hackage
- Pantry.HTTP
- Pantry.Repo
- Pantry.Tree

flags:
convert-old-stackage:
description: Build the convert-old-stackage executable
manual: true
default: false

executables:
# Remove this executable once we're totally switched over.
# Keeping the src directory for now to avoid needing to expose internals.
convert-old-stackage:
source-dirs: app/
when:
- condition: ! '! flag(convert-old-stackage)'
buildable: False
source-dirs:
- app/
- src/
main: convert-old-stackage.hs
dependencies:
- pantry
other-modules:
- Pantry.OldStackage

tests:
spec:
Expand Down
File renamed without changes.

0 comments on commit 77a5977

Please sign in to comment.