Skip to content

Commit

Permalink
mkApp was added back
Browse files Browse the repository at this point in the history
  • Loading branch information
bacchanalia committed Aug 27, 2024
1 parent 1ec1f5a commit 67d0354
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions src/Data/Docker/Nix/FetchDocker.hs
Original file line number Diff line number Diff line change
Expand Up @@ -54,14 +54,10 @@ inheritAdapter sourceName sourceLine sourceColumn ks = Nix.Expr.inherit
SourcePos{..}
#endif

-- | @hnix-0.5.0@ omits mkApp.
#if MIN_VERSION_hnix(0,5,0) && !MIN_VERSION_hnix(0,17,0)
-- | @hnix-0.5.0@ omits mkApp but it was added back in @hnix-0.17.0@
mkApp :: NExpr -> NExpr -> NExpr
mkApp e = Fix . NBinary NApp e
#elif MIN_VERSION_hnix(0,17,0)
-- see: https://github.com/haskell-nix/hnix/pull/1042
mkApp :: NExpr -> NExpr -> NExpr
mkApp e = Fix . NApp e
#endif

{- Example output of the pretty-printed, generated Nix expression AST.
Expand Down

0 comments on commit 67d0354

Please sign in to comment.