Skip to content

Instantly share code, notes, and snippets.

View pgabara's full-sized avatar

Piotr Gabara pgabara

View GitHub Profile
@pgabara
pgabara / Main.scala
Last active October 7, 2019 11:45
Simple server-scoket channel
package app
import zio._
import zio.clock._
import zio.console._
import zio.random._
import zio.nio.channels.{ AsynchronousServerSocketChannel, AsynchronousSocketChannel }
import zio.nio._
import zio.duration._
Configuring stack-run-0.1.1.4...
clang: warning: argument unused during compilation: '-nopie' [-Wunused-command-line-argument]
Preprocessing executable 'stack-run' for stack-run-0.1.1.4..
Building executable 'stack-run' for stack-run-0.1.1.4..
unix/System/Console/Questioner.hs:4:14: warning:
-XOverlappingInstances is deprecated: instead use per-instance pragmas OVERLAPPING/OVERLAPPABLE/OVERLAPS
|
4 | {-# LANGUAGE OverlappingInstances #-}
| ^^^^^^^^^^^^^^^^^^^^