java
sql
html
php
c
database
linux
xcode
android
objective-c
visual-studio
multithreading
perl
tsql
apache
mvc
php5
jsp
postgresql
dom
Use break:
break
Prelude> break (==':') "192.168.0.1:5000" ("192.168.0.1",":5000") Prelude> break (==':') "192.168.0.15" ("192.168.0.15","")
You might like the split package
bash> cabal update && cabal install split bash> ghci ghci> import Data.List.Split ghci> splitOn ":" "192.168.0.1:9000" ["192.168.0.1","9000"]