@hackage ghc-plugin-non-empty0.0.0.0

GHC Plugin for non-empty lists

GHC Plugin for compile-time transformation of list literals to NonEmpty lists.

{-# OPTIONS_GHC -fplugin=GhcPluginNonEmpty #-}

import Data.List.NonEmpty (NonEmpty)

portsToListen :: NonEmpty Int
portsToListen = [8000, 8080, 8081]

See README.md for more details.