Make 'buildOptions' a top-level function.
Make 'buildOptions' a top-level function.

Allows it to be reused.

sopvop/cabal,lukexi/cabal,thomie/cabal,themoritz/cabal,x-y-z/cabal,fpco/cabal,edsko/cabal,valderman/cabal,triplepointfive/cabal,bennofs/cabal,ian-ross/cabal,trskop/cabal,headprogrammingczar/cabal,mydaum/cabal,kolmodin/cabal,ghc-android/cabal,seereason/cabal,fpco/cabal,rimmington/cabal,rimmington/cabal,lukexi/cabal,seereason/cabal,Heather/cabal,Helkafen/cabal,x-y-z/cabal,ghc-android/cabal,Helkafen/cabal,corngood/cabal,eric-stanley/cabal,mydaum/cabal,mmakowski/cabal,plow-technologies/cabal,mightybyte/cabal,kosmikus/cabal,thoughtpolice/cabal,Heather/cabal,mmakowski/cabal,Peaker/cabal,plow-technologies/cabal,randen/cabal,thoughtpolice/cabal,garetxe/cabal,kolmodin/cabal,enolan/cabal,typelead/epm,gridaphobe/cabal,triplepointfive/cabal,gbaz/cabal,sopvop/cabal,themoritz/cabal,randen/cabal,beni55/cabal,kosmikus/cabal,martinvlk/cabal,gbaz/cabal,bennofs/cabal,edsko/cabal,garetxe/cabal,ian-ross/cabal,fugyk/cabal,christiaanb/cabal,beni55/cabal,headprogrammingczar/cabal,themoritz/cabal,mightybyte/cabal,plumlife/cabal,martinvlk/cabal,anton-dessiatov/cabal,anton-dessiatov/cabal,valderman/cabal,thomie/cabal,corngood/cabal,sopvop/cabal,fugyk/cabal,Peaker/cabal,enolan/cabal,gridaphobe/cabal,plumlife/cabal,eric-stanley/cabal,typelead/epm,christiaanb/cabal,trskop/cabal