Skip to content

Commit

Permalink
newVarList: Refactoring
Browse files Browse the repository at this point in the history
  • Loading branch information
ijaketak committed Oct 8, 2023
1 parent d3f2df1 commit 4ec752e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@

## version 0

### 0.3 (still not released)

* `newVarList`: Refactoring.

### 0.2.1 -- 2023-10-09

* Expose the functions `unbind2` and `unbind2List`.
Expand Down
2 changes: 1 addition & 1 deletion src/Data/Binder.hs
Original file line number Diff line number Diff line change
Expand Up @@ -317,7 +317,7 @@ boxVarList = fmap $ view var'Box

-- | Create new variables with given names.
newVarList :: MonadNumbering m => [Text] -> (Var m a -> m a) -> m (VarList m a)
newVarList names mkFree = sequence $ flip fmap names $ \name -> newVar name mkFree
newVarList names mkFree = flip traverse names $ flip newVar mkFree


-- | Essentially, @BinderList a m b@ means @[a] -> m b@.
Expand Down

0 comments on commit 4ec752e

Please sign in to comment.