Skip to content

Commit

Permalink
Update usage example
Browse files Browse the repository at this point in the history
  • Loading branch information
Ben Hamlin committed Jul 5, 2019
1 parent dd9e207 commit 1bd1328
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,10 +32,10 @@ import Control.Monad (when)
main :: IO ()
main = runRTNL $ do
let mybridge = LinkName "mybridge"
create (Bridge mybridge)
create (Bridge, mybridge)
change mybridge Up
state <- dump mybridge
when (head state == Up) $
state <- dump' mybridge
when (state == Up) $
liftIO (putStrLn "I did it, mom!")
destroy mybridge
```
6 changes: 3 additions & 3 deletions src/System/Linux/RTNetlink.hs
Original file line number Diff line number Diff line change
Expand Up @@ -39,10 +39,10 @@ functions to make this easier.
> main :: IO ()
> main = runRTNL $ do
> let mybridge = LinkName "mybridge"
> create (Bridge mybridge)
> create (Bridge, mybridge)
> change mybridge Up
> state <- dump mybridge
> when (head state == Up) $
> state <- dump' mybridge
> when (state == Up) $
> liftIO (putStrLn "I did it, mom!")
> destroy mybridge
-}
Expand Down

0 comments on commit 1bd1328

Please sign in to comment.