Skip to content

Commit e516238

Browse files
Anton GushchaAnton Gushcha
Anton Gushcha
authored and
Anton Gushcha
committed
Update tutorial-NT2.md
withSocketsDo may be needed, emphasize the point
1 parent eb6d75d commit e516238

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: tutorials/tutorial-NT2.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ import Data.ByteString.Char8
7575
import Control.Monad
7676
{% endhighlight %}
7777

78-
The client will consist of a single main function. [withSocketsDo](http://hackage.haskell.org/package/network-2.6.2.1/docs/Network-Socket-Internal.html#v:withSocketsDo) is needed for Windows platform.
78+
The client will consist of a single main function. [withSocketsDo](http://hackage.haskell.org/package/network-2.6.2.1/docs/Network-Socket-Internal.html#v:withSocketsDo) may be needed for Windows platform with old versions of network library. For compatibility with older versions on Windows, it is good practice to always call withSocketsDo (it's very cheap).
7979

8080
{% highlight haskell %}
8181
main :: IO ()

0 commit comments

Comments
 (0)