Skip to content

Commit

Permalink
Replace RecordWildCards with NamedFieldPuns
Browse files Browse the repository at this point in the history
  • Loading branch information
mfussenegger committed Feb 12, 2019
1 parent 2794dfd commit 8ec215b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Fake.hs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{-# LANGUAGE RecordWildCards #-}
{-# LANGUAGE NamedFieldPuns #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE GeneralizedNewtypeDeriving #-}
{-# LANGUAGE FlexibleContexts #-}
Expand Down Expand Up @@ -258,7 +258,7 @@ fromRegex input =
fromFile :: Expr -> Fake Value
fromFile fileName = do
fileName' <- Except.liftEither =<< A.asText <$> eval fileName
e@Env{..} <- State.get
e@Env{envFileCache} <- State.get
case M.lookup fileName' envFileCache of
(Just lines) -> pure $ Array lines
Nothing -> do
Expand Down

0 comments on commit 8ec215b

Please sign in to comment.