@@ -69,13 +69,18 @@ extra-deps:
6969 subdirs:
7070 - subdir1
7171 - subdir2
72+ - archive: http://github.com/yesodweb/wai/archive/2f8a8e1b771829f4a8a77c0111352ce45a14c30f.zip
73+ subdirs:
74+ - wai
75+ - warp
76+ - archive: ../acme-missiles-0.3.tar.gz
77+ sha256: e563d8b524017a06b32768c4db8eff1f822f3fb22a90320b7e414402647b735b
7278|]
7379
74−
7580configMinimal :: Config
7681configMinimal = Config
7782 { _cResolver = "lts-8.15"
78− , _cPackages = Just [ Simple "." ]
83+ , _cPackages = Just [ PSimple "." ]
7984 , _cExtraDeps = Nothing
8085 }
8186
@@ -83,46 +88,46 @@ config :: Config
8388config = Config
8489 { _cResolver = "lts-3.7"
8590 , _cPackages = Just
86− [ Simple "."
87− , LocationSimple (Location "dir1/dir2" Nothing Nothing)
88− , LocationSimple (Location "https://example.com/foo/bar/baz-0.0.2.tar.gz" (Just True) Nothing)
89− , LocationGit $ Location
91+ [ PSimple "."
92+ , PLocationSimple (Location "dir1/dir2" Nothing Nothing)
93+ , PLocationSimple (Location "https://example.com/foo/bar/baz-0.0.2.tar.gz" (Just True) Nothing)
94+ , PLocationGit $ Location
9095 (Git
9196 "git@github.com:commercialhaskell/stack.git"
9297 "6a86ee32e5b869a877151f74064572225e1a0398")
9398 Nothing Nothing
94− , LocationGit (Location
99+ , PLocationGit (Location
95100 (Git
96101 "git@github.com:example/mega-repo"
97102 "6a86ee32e5b869a877151f74064572225e1a0000")
98103 Nothing (Just ["subdir1", "subdir2"]))
99104 ]
100105 , _cExtraDeps = Just
101− [Simple "acme-missiles-0.3"]
106+ [PSimple "acme-missiles-0.3"]
102107 }
103108
104109configNew :: Config
105110configNew = Config
106111 { _cResolver = "lts-3.7"
107112 , _cPackages = Just
108− [ Simple "."
109− , LocationSimple (Location "dir1/dir2" Nothing Nothing)
110− , LocationSimple (Location "https://example.com/foo/bar/baz-0.0.2.tar.gz" (Just True) Nothing)
111− , LocationGit $ Location
113+ [ PSimple "."
114+ , PLocationSimple (Location "dir1/dir2" Nothing Nothing)
115+ , PLocationSimple (Location "https://example.com/foo/bar/baz-0.0.2.tar.gz" (Just True) Nothing)
116+ , PLocationGit $ Location
112117 (Git
113118 "git@github.com:commercialhaskell/stack.git"
114119 "6a86ee32e5b869a877151f74064572225e1a0398")
115120 Nothing Nothing
116− , LocationGit (Location
121+ , PLocationGit (Location
117122 (Git
118123 "git@github.com:example/mega-repo"
119124 "6a86ee32e5b869a877151f74064572225e1a0000")
120125 Nothing (Just ["subdir1", "subdir2"]))
121126 ]
122127 , _cExtraDeps = Just
123− [ Simple "acme-missiles-0.3"
124− , Simple "acme-missiles-hash-0.4@sha256:2ba66a092a32593880a87fb00f3213762d7bca65a687d45965778deb8694c5d1"
125− , Simple "acme-missiles-rev-0.5@rev:0"
128+ [ PSimple "acme-missiles-0.3"
129+ , PSimple "acme-missiles-hash-0.4@sha256:2ba66a092a32593880a87fb00f3213762d7bca65a687d45965778deb8694c5d1"
130+ , PSimple "acme-missiles-rev-0.5@rev:0"
126131 , PNewGit $ NewGit
127132 "git@github.com:commercialhaskell/stack.git"
128133 "6a86ee32e5b869a877151f74064572225e1a0398"
@@ -131,6 +136,14 @@ configNew = Config
131136 "git@github.com:example/mega-repo"
132137 "6a86ee32e5b869a877151f74064572225e1a0000"
133138 (Just ["subdir1", "subdir2"])
139+ , PArchive $ Archive
140+ "http://github.com/yesodweb/wai/archive/2f8a8e1b771829f4a8a77c0111352ce45a14c30f.zip"
141+ Nothing
142+ (Just ["wai", "warp"])
143+ , PArchive $ Archive
144+ "../acme-missiles-0.3.tar.gz"
145+ (Just "e563d8b524017a06b32768c4db8eff1f822f3fb22a90320b7e414402647b735b")
146+ Nothing
134147 ]
135148 }
136149