summaryrefslogtreecommitdiff
path: root/libraries/base/tests/genericNegative001.hs
blob: 94b54b6b099958db35d61de6a6915da13dcb3c44 (plain)
1
2
3
4
5
6
7
8
-- Test for http://hackage.haskell.org/trac/ghc/ticket/2533
import System.Environment
import Data.List
main = do
 (n:_) <- getArgs
 print (genericTake (read n) "none taken")
 print (genericDrop (read n) "none dropped")
 print (genericSplitAt (read n) "none split")