Skip to content

Instantly share code, notes, and snippets.

Michael Cook MBCook

Block or report user

Report or block MBCook

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@MBCook
MBCook / LineIntersections.hs
Last active Aug 29, 2015
DailyProgrammer #163 in Haskell
View LineIntersections.hs
-- A program to take line segments in and find intersections fast
-- Challenge from: http://thirdpartyninjas.com/blog/2008/10/07/line-segment-intersection/
-- Intersection algorithm from: http://stackoverflow.com/a/565282/786339
import Data.Maybe -- To make Maybe handling easier
import Data.List -- So we can sort
import System.IO -- For file loading
------------------ Some types we'll use ------------------
You can’t perform that action at this time.