File tree Expand file tree Collapse file tree 1 file changed +7
-11
lines changed Expand file tree Collapse file tree 1 file changed +7
-11
lines changed Original file line number Diff line number Diff line change @@ -126,17 +126,13 @@ let
126
126
# access to the store is restricted. If origSrc was already in the store
127
127
# you can pass the project in as a string.
128
128
rawCabalProject =
129
- if cabalProject != null
130
- then cabalProject + (
131
- if cabalProjectLocal != null
132
- then ''
133
-
134
- -- Added from cabalProjectLocal argument to cabalProject
135
- ${ cabalProjectLocal }
136
- ''
137
- else ""
138
- )
139
- else null ;
129
+ if cabalProject == null && cabalProjectLocal == null
130
+ then null
131
+ else (
132
+ # like fmap
133
+ let f = g : x : if x == null then "" else g x ; in
134
+ f ( x : x ) cabalProject + f ( x : "\n -- Added from cabalProjectLocal argument to cabalProject\n ${ x } " ) cabalProjectLocal
135
+ ) ;
140
136
141
137
cabalProjectIndexState =
142
138
if rawCabalProject != null
You can’t perform that action at this time.
0 commit comments