&      !"#$%&'()*+,-./01234 5 6 7 8 9 : ; < = > ? @ A B C D E F G H I J K L M N O P Q R S T U V W X Y Z [ \ ] ^ _ ` a b c d e f g h i j k l m n o p q r s t u v w x y z { | } ~    0 Safe-InferedThe OpenGL library doesn'%t seem to provide a nice way convert ' a Float to a GLfloat, even though they're the same thing  under the covers. )Using realToFrac is too slow, as it doesn't get fused in at  least GHC 6.12.1 "Used for similar reasons to above  Safe-Infered Simulation state The iteration number we' re up to. 7Whether the animation is free-running (or single step) ASignals to callbackIdle to take a single step of the automation. ;Signals to callbackIdle to roll-back to the initial world. ?How many simulation setps to take for each second of real time 'How many seconds worth of simulation we've done so far Record how many steps we've been taking per frame Initial control state  Safe-Infered.Dump internal state of the OpenGL framebuffer .Dump internal state of the fragment renderer.  Safe-Infered Animation State "Whether the animation is running. How many times we've entered the animation loop. 2Whether this is the first frame of the animation. 2Number of msec the animation has been running for EThe time when we entered the display callback for the current frame. AClamp the minimum time between frames to this value (in seconds)  Setting this to < 10ms probably isn't worthwhile. CThe time when the last call to the users render function finished. KThe time when displayInWindow last finished (after sleeping to clamp fps). $How long it took to draw this frame    Safe-InferedGlobal translation. Global rotation (in degrees). .Global scaling (of both x and y coordinates). #The initial state of the viewport.  Safe-Infered"Abstract 32-bit RGBA bitmap data. 7Generates the point path to display the bitmap centred 2Destructively reverse the byte order in an array. J This is necessary as OpenGL reads pixel data as ABGR, rather than RGBA BFrees the allocated memory given to OpenGL to avoid a memory leak       Safe-Infered'Represents a Quadrant in the 2D plane.  South East  South West  North East  North West !A list of all quadrants. Same as  [NW .. SE].        Safe-Infered A point on the x-y plane. ! Points can also be treated as Vectors, so Graphics.Gloss.Data.Vector  may also be useful. DTest whether a point lies within a rectangular box that is oriented F on the x-y plane. The points P1-P2 are opposing points of the box, * but need not be in a particular order.   P2 +-------+  | |  | + P0 |  | |  +-------+ P1  Pretend a point is a number.  Vectors aren'4t real numbes according to Haskell, because they don't F support the multiply and divide field operators. We can pretend they A are though, and use the (+) and (-) operators as component-wise  addition and subtraction.        Safe-InferedConvert degrees to radians Convert radians to degrees 4Normalise an angle to be between 0 and 2*pi radians  Safe-Infered 3A vector can be treated as a point, and vis-versa. The magnitude of a vector. 6The angle of this vector, relative to the +ve x-axis.  The dot product of two vectors.  The determinant of two vectors. Multiply a vector by a scalar. JRotate a vector by an angle (in radians). +ve angle is counter-clockwise. :Compute the inner angle (in radians) between two vectors. 0Normalise a vector, so it has a magnitude of 1. CProduce a unit vector at a given angle relative to the +ve x-axis. # The provided angle is in radians.     Safe-Infered MCheck if line segment (P1-P2) clears a box (P3-P4) by being well outside it. (Given an infinite line which intersects P1 and P1, 2 return the point on that line that is closest to P3 3Given an infinite line which intersects P1 and P2, 8 let P4 be the point on the line that is closest to P3. GReturn an indication of where on the line P4 is relative to P1 and P2.    if P4 == P1 then 0  if P4 == P2 then 1 2 if P4 is halfway between P1 and P2 then 0.5    |  P1  |  P4 +---- P3  |  P2  | JGiven four points specifying two lines, get the point where the two lines E cross, if any. Note that the lines extend off to infinity, so the P intersection point might not line between either of the two pairs of points.   \ /  P1 P4  \ /  +  / \  P3 P2  / \ Get the point where a segment P1-P2 crosses an infinite line P3-P4,  if any. AGet the point where a segment crosses a horizontal line, if any.   + P1  /  -------+---------  / y0  P2 + !?Get the point where a segment crosses a vertical line, if any.   |  | + P1  | /  +  / |  P2 + |  | x0 "Get the point where a segment P1-P2 crosses another segement P3-P4,  if any. #?Check if an arbitrary segment intersects a horizontal segment.   + P2  /  (xa, y3) +---+----+ (xb, y3)  /  P1 + $=Check if an arbitrary segment intersects a vertical segment.   (x3, yb) +  | + P1  | /  +  / |  P2 + |  + (x3, ya)  P1 First point of segment. P2 Second point of segment. P3 Lower left point of box. P4 Upper right point of box. P1 P2 P3 /the point on the line P1-P2 that is closest to P3 P1 P2 P3 P1 P2 P3 P4 P1 P2 P3 P4 P1 First point of segment. P2 Second point of segment. y value of line. !P1 First point of segment. P2 Second point of segment. x value of line. "P1 P2 P3 P4 #P1 First point of segment. P2 Second point of segment. $(y3) y value of horizontal segment. -(xa) Leftmost x value of horizontal segment. .(xb) Rightmost x value of horizontal segment. %(x3, y3) Intersection point, if any. $P1 First point of segment. P2 Second point of segment. !(x3) x value of vertical segment )(ya) Lowest y value of vertical segment. *(yb) Highest y value of vertical segment. %(x3, y3) Intersection point, if any.  !"#$  !"#$  !"#$ Safe-Infered%An integral coordinate. &$A rectangular area of the 2D plane. F We keep the type abstract to ensure that invalid extents cannot be  constructed. 'Construct an extent. 8 The north value must be > south, and east > west, else  . ('Take the NSEW components of an extent. )!A square extent of a given size. *'Get the width and height of an extent. +=Check if an extent is a square with a width and height of 1. ,2Check whether a coordinate lies inside an extent. --Check whether a point lies inside an extent. .9Get the coordinate that lies at the center of an extent. /#Cut one quadrant out of an extent. 07Get the quadrant that this coordinate lies in, if any. 19Constuct a path to a particular coordinate in an extent. 2FIf a line segment (P1-P2) intersects the outer edge of an extent then A return the intersection point, that is closest to P1, if any. # If P1 is inside the extent then  .   P2  /  ----/-  | / |  + |  /------  /  P1 3Check whether a line segment'+s endpoints are inside an extent, or if it ! intersects with the boundary. %&'y max (north) y min (south)  x max (east)  x min (west) ()*+,-./0123%&'()*+,-./0123&%'()*+,-./0123%&'()*+,-./0123  Safe-Infered4The quad tree structure. 5A node with four children. 6A leaf containint some value. 7An empty node. 8A 7 tree. 9 A node with 7. for all its branches. :Get a quadrant from a node. 0 If the tree does not have an outer node then  . ;*Apply a function to a quadrant of a node. J If the tree does not have an outer node then return the original tree. <>Insert a value into the tree at the position given by a path. & If the path intersects an existing 6 then return the original tree. =9Insert a value into the node containing this coordinate. B The node is created at maximum depth, corresponding to an unit &. >%Lookup a node based on a path to it. ?,Lookup an element based given a path to it. @>Lookup a node if a tree given a coordinate which it contains. AJFlatten a QuadTree into a list of its contained values, with coordinates. BJFlatten a QuadTree into a list of its contained values, with coordinates. 456789:;<=>?@#Extent that covers the whole tree. %Coordinate of the value of interest. A#Extent that covers the whole tree. B#Extent that covers the whole tree. 456789:;<=>?@AB476589:;<=>?@AB 476589:;<=>?@AB Safe-Infered)Render a circle with the given thickness (Render an arc with the given thickness.  Safe-Infered  !"#$  Safe-InferedC/Describes how Gloss should display its output. D;Display full screen with a drawing area of the given size. E<Display in a window with the given name, size and position. CDECDECEDCED Safe-Infered%Arguments: (Width,Height) in pixels. No arguments. "Arguments: (PosX,PosY) in pixels. Arguments: KeyType, Key Up / Down, Ctrl / Alt /' Shift pressed, latest mouse location. #Display callback has no arguments. EThe functions every backend window managed backend needs to support. KThe Backend module interfaces with the window manager, and handles opening 8 and closing the window, and managing key events etc. It doesn'7t know anything about drawing lines or setting colors. J When we get a display callback, Gloss will perform OpenGL actions, and 7 the backend needs to have OpenGL in a state where it's able to accept them. 4Initialize the state used by the backend. If you don't use any state, = make a Unit-like type; see the GLUT backend for an example. HPerform any initialization that needs to happen before opening a window L The Boolean flag indicates if any debug information should be printed to  the terminal 4Perform any deinitialization and close the backend. +Open a window with the given display mode. 4Dump information about the backend to the terminal. Install the display callbacks. #Install the window close callback. Install the reshape callbacks. &Install the keymouse press callbacks. $Install the mouse motion callbacks.  Install the idle callbacks. !The mainloop of the backend. "7A function that signals that screen has to be updated. #>Function that returns (width,height) of the window in pixels. $FFunction that reports the time elapsed since the application started.  (in seconds) %3Function that puts the current thread to sleep for n seconds. lFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefghijklmnopqrstuvwxyz{|}~&'()*+ !"#$%oCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefghijklmnopqrstuvwxyz{|}~&'()*+ !"#$% FGHIJK<~}|{zyxwvutsrqponmlkjihgfedcba`_^]\[ZYXWVUTSRQPONML&+*)(' !"#$% Safe-Infered,We don'8t maintain any state information for the GLUT backend,  so this data type is empty. ,-,,- Safe-Infered.qCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefghijklmnopqrstuvwxyz{|}~&'()*+ !"#$%,.. Safe-Infered/"Handles animation timing details. 0 Call this function at the start of each frame. 0"Handles animation timing details. . Call this function at the end of each frame. /0/0/0 Safe-Infered1-The commands suported by the view controller 2The default commands 13456789:;<=2>13456789:;<=2>1 =<;:98765432>  Safe-Infered?$State for controlling the viewport. 3 These are used by the viewport control component. @.The command list for the viewport controller. 9 These can be safely overwridden at any time by deleting / adding entries to the list. 3 Entries at the front of the list take precedence. AAHow much to scale the world by for each step of the mouse wheel. BDHow many degrees to rotate the world by for each pixel of x motion. CDuring viewport translation, , where the mouse was clicked on the window. DDuring viewport rotation, + where the mouse was clicked on the window EThe initial view state. ?F@ABCDE?F@ABCDE?F@ABCDE! Safe-InferedG4Callback to handle keyboard and mouse button events  for controlling the viewport. Gref to ViewPort state ref to ViewPort Control state GG" Safe-InferedH;Perform a rendering action whilst using the given viewport HThe viewport to use. !The rendering action to perform. HH# Safe-Infered &'()*+$ Safe-InferedI8The graphics library calls back on this function when it's finished drawing  and it's time to do some computation. Ithe simulation state the animation statea the viewport state the current world the initial world fn to advance the world #how much time to advance world by  in single step mode II% Safe-InferedJ4Callback to handle keyboard and mouse button events  for controlling the viewport. Jref to ViewPort state ref to ViewPort Control state JJ& Safe-InferedK4Callback to handle keyboard and mouse button events  for controlling the viewport. KKK' Safe-InferedLLL  Safe-Infered An abstract color value. A We keep the type abstract so we can be sure that the components 7 are in the required range. To make a custom color use . CMake a custom color. All components are clamped to the range [0..1]. Make a custom color. A You promise that all components are clamped to the range [0..1] DMake a custom color. All components are clamped to the range [0..255]. %Take the RGBA components of a color. Make a custom color. * Components should be in the range [0..1] but this is not checked. &Mix two colors with the given ratios. =Add RGB components of a color component-wise, then normalise G them to the highest resulting one. The alpha components are averaged. 9Make a dimmer version of a color, scaling towards black. ;Make a brighter version of a color, scaling towards white. Lighten a color, adding white. Darken a color, adding black. !A greyness of a given magnitude. Red component. Green component. Blue component. Alpha component. Red component. Green component. Blue component. Alpha component. Red component. Green component. Blue component. Alpha component. Ratio of first color. Ratio of second color.  First color. Second color. Resulting color. "Range is 0 = black, to 1 = white. MM( Safe-InferedN#Convert one of our Colors to OpenGL's representation. NNN) Safe-InferedOFOpen a window and use the supplied callbacks to handle window events. OColor to use when clearing. Callbacks to use OO Safe-Infered, A 2D picture (A picture consisting of several others. /A picture scaled by the given x and y factors. =A picture rotated clockwise by the given angle (in degrees). 7A picture translated by the given x and y coordinates. !A picture drawn with this color. 9A bitmap image with a width, height and some 32-bit RGBA  bitmap data. >The boolean flag controls whether Gloss should cache the data B between frames for speed. If you are programatically generating $ the image for each frame then use P. If you have loaded it  from a file then use Q. &Some text to draw with a vector font. ;A circular arc drawn counter-clockwise between two angles 6 (in degrees), with the given radius and thickness. 4 If the thickness is 0 then this is equivalent to . ;A circular arc drawn counter-clockwise between two angles $ (in degrees) at the given radius. .A circle with the given thickness and radius. 4 If the thickness is 0 then this is equivalent to .  A circle with the given radius.  A line along an arbitrary path. ,A convex polygon filled with a solid color. %A blank picture, with nothing in it. A path through the x-y plane. %A blank picture, with nothing in it. ,A convex polygon filled with a solid color.  A line along an arbitrary path.  A circle with the given radius. .A circle with the given thickness and radius. 4 If the thickness is 0 then this is equivalent to . HA circular arc drawn counter-clockwise between two angles (in degrees)  at the given radius. HA circular arc drawn counter-clockwise between two angles (in degrees), ) with the given radius and thickness. 4 If the thickness is 0 then this is equivalent to . &Some text to draw with a vector font. >A bitmap image with a width, height and a Vector holding the  32-bit RGBA bitmap data. >The boolean flag controls whether Gloss should cache the data  between frames for speed. 6 If you are programatically generating the image for  each frame then use P. - If you have loaded it from a file then use Q. !A picture drawn with this color. 7A picture translated by the given x and y coordinates. =A picture rotated clockwise by the given angle (in degrees). /A picture scaled by the given x and y factors. (A picture consisting of several others.  O(1). Use a R) of RGBA data as a bitmap with the given  width and height. O(size). Copy a S+ of RGBA data into a bitmap with the given  width and height. >The boolean flag controls whether Gloss should cache the data C between frames for speed. If you are programatically generating % the image for each frame then use P. If you have loaded it  from a file then use Q. O(size). Copy a T file into a bitmap. <Load an uncompressed 24 or 32bit RGBA BMP file as a bitmap. A closed loop along a path. &A solid circle with the given radius. MA solid arc, drawn counter-clockwise between two angles at the given radius. !A wireframe sector of a circle. J An arc is draw counter-clockwise from the first to the second angle at M the given radius. Lines are drawn from the origin to the ends of the arc. :A path representing a rectangle centered about the origin 1A wireframe rectangle centered about the origin. :A wireframe rectangle in the y > 0 half of the x-y plane. DA path representing a rectangle in the y > 0 half of the x-y plane. -A solid rectangle centered about the origin. 6A solid rectangle in the y > 0 half of the x-y plane. -width of rectangle height of rectangle U/ / U  Safe-Infered<The quadtree contains cells of unit extent (NetHack style). A Given a line segement (P1-P2) through the tree, get the cell 6 closest to P1 that intersects the segment, if any. <TODO: This currently uses a naive algorithm. It just calls   and sorts the results ) to get the one closest to P1. It'd be better to do a @ proper walk over the tree in the direction of the ray. <The quadtree contains cells of unit extent (NetHack style). L Given a line segment (P1-P2) through the tree, return the list of cells  that intersect the segment. (P1) Starting point of seg. (P2) Final point of seg. !Extent convering the whole tree.  The tree. <Intersection point, extent of cell, value of cell (if any). (P1) Starting point of seg. (P2) Final point of seg.  Extent covering the whole tree.  The tree. 3Intersection point, extent of cell, value of cell. * Safe-InferedVA texture that we've sent to OpenGL. WStable name derived from the  that the user gives us. XWidth of the image, in pixels. Y Height of the image, in pixels. Z!Pointer to the Raw texture data. [The OpenGL texture object. \GWhether we want to leave this in OpenGL texture memory between frames. ]Render options settings ^Whether to use color _%Whether to force wireframe mode only `Whether to use alpha blending aWhether to use line smoothing bCache of Textures that we've sent to OpenGL. cDefault render options VdWXYZ[\]e^_`abcVdWXYZ[\]e^_`abcVdWXYZ[\]e^_`abc+ Safe-Inferedf>Render a picture using the given render options and viewport. fThe render state The current viewport. The picture to render. ff, Safe-InferedgInitial state of the backend. Display config. Background color. The picture to draw. gg Safe-Infered1Open a new window and display the given picture. 4Use the following commands once the window is open:  Quit - esc-key. . Move Viewport - left-click drag, arrow keys. E Rotate Viewport - right-click drag, control-left-click drag, or home/ end-keys. ( Zoom Viewport - mouse wheel, or page up/ down-keys. Display mode. Background color. The picture to draw. N CDE- Safe-InferedhInitial State of the backend 0Whether to allow the image to be panned around. Display mode. Background color. 1Function to produce the next frame of animation. A It is passed the time in seconds since the program started. hh Safe-Infered3Open a new window and display the given animation. >Once the window is open you can use the same commands as with display. Display mode. Background color. 2Function to produce the next frame of animation. B It is passed the time in seconds since the program started. N CDE Safe-Infered3Open a new window and display the given animation. >Once the window is open you can use the same commands as with display. Like  but don')t allow the display to be panned around. Display mode. Background color. 2Function to produce the next frame of animation. B It is passed the time in seconds since the program started. Display mode. Background color. 2Function to produce the next frame of animation. B It is passed the time in seconds since the program started. O CDE. Safe-InferediInitial state of the backend Display mode. Background color. ANumber of simulation steps to take for each second of real time. The initial model. .A function to convert the model to a picture. =A function to step the model one iteration. It is passed the = current viewport and the amount of time for this simulation  step (in seconds). ii Safe-InferedXRun a finite-time-step simulation in a window. You decide how the model is represented, b how to convert the model to a picture, and how to advance the model for each unit of time. # This function does the rest. >Once the window is open you can use the same commands as with display. Display mode. Background color. ANumber of simulation steps to take for each second of real time. The initial model. .A function to convert the model to a picture. >A function to step the model one iteration. It is passed the A current viewport and the amount of time for this simulation  step (in seconds). S CDE Safe-InferedDisplay mode. Background color. ANumber of simulation steps to take for each second of real time. The initial model. .A function to convert the model to a picture. >A function to step the model one iteration. It is passed the A current viewport and the amount of time for this simulation  step (in seconds). S CDE/ Safe-InferedPossible input events. jInitial state of the backend Display mode. Background color. ANumber of simulation steps to take for each second of real time. The initial world. .A function to convert the world to a picture. #A function to handle input events. ,A function to step the world one iteration. H It is passed the period of time (in seconds) needing to be advanced. jj  Safe-InferedPlay a game in a window. Display mode. Background color. ANumber of simulation steps to take for each second of real time. The initial world. +A function to convert the world a picture. #A function to handle input events. ,A function to step the world one iteration. H It is passed the period of time (in seconds) needing to be advanced.  CDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefghijklmnopqrstuvwxyz{|}~TK~}|{zyxwvutsrqponmlkjihgfedcba`_^]\[ZYXWVUTSRQPONMLFGHIJ Safe-InferedBPlay a game in a window, using IO actions to build the pictures. Display mode. Background color. ANumber of simulation steps to take for each second of real time. The initial world. *An action to convert the world a picture. #A function to handle input events. ,A function to step the world one iteration. H It is passed the period of time (in seconds) needing to be advanced.  CDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefghijklmnopqrstuvwxyz{|}~TK~}|{zyxwvutsrqponmlkjihgfedcba`_^]\[ZYXWVUTSRQPONMLFGHIJ0 Safe-InferedQ CDECEDk1123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abc d e f g h i j k l m n o p q r s t uvvwxyz{|}~z        ///  !"#$%&'()*+, -./051234536789:;<=>?@ABCDEFGHIJKLMNOPQRSTsUVWXYZ[\]^_`abcdefg  h i j k l  !m"n$o%p&q'r s(t)uvwxvwy3z{|}~************** **+,-./ gloss-1.7.3.1&Graphics.Gloss.Interface.Pure.SimulateGraphics.Gloss.Data.PictureGraphics.Gloss.Data.QuadGraphics.Gloss.Data.PointGraphics.Gloss.Geometry.AngleGraphics.Gloss.Data.VectorGraphics.Gloss.Geometry.LineGraphics.Gloss.Data.ExtentGraphics.Gloss.Data.QuadTreeGraphics.Gloss.Data.Display"Graphics.Gloss.Interface.Pure.GameGraphics.Gloss.Data.Color!Graphics.Gloss.Algorithms.RayCast%Graphics.Gloss.Interface.Pure.Display%Graphics.Gloss.Interface.Pure.Animate#Graphics.Gloss.Interface.IO.Animate$Graphics.Gloss.Interface.IO.Simulate Graphics.Gloss.Interface.IO.Game&Graphics.Gloss.Internals.Render.Common1Graphics.Gloss.Internals.Interface.Simulate.State(Graphics.Gloss.Internals.Interface.Debug0Graphics.Gloss.Internals.Interface.Animate.State+Graphics.Gloss.Internals.Interface.ViewPort&Graphics.Gloss.Internals.Render.Bitmap&Graphics.Gloss.Internals.Render.CircleGraphics.Gloss.Geometry0Graphics.Gloss.Internals.Interface.Backend.Types/Graphics.Gloss.Internals.Interface.Backend.GLUT*Graphics.Gloss.Internals.Interface.Backend1Graphics.Gloss.Internals.Interface.Animate.Timing3Graphics.Gloss.Internals.Interface.ViewPort.Command8Graphics.Gloss.Internals.Interface.ViewPort.ControlState4Graphics.Gloss.Internals.Interface.ViewPort.KeyMouse(Graphics.Gloss.Internals.Render.ViewPort+Graphics.Gloss.Internals.Interface.Callback0Graphics.Gloss.Internals.Interface.Simulate.Idle2Graphics.Gloss.Internals.Interface.ViewPort.Motion3Graphics.Gloss.Internals.Interface.ViewPort.Reshape.Graphics.Gloss.Internals.Interface.Common.ExitGraphics.Gloss.Internals.Color)Graphics.Gloss.Internals.Interface.Window%Graphics.Gloss.Internals.Render.State'Graphics.Gloss.Internals.Render.Picture*Graphics.Gloss.Internals.Interface.Display*Graphics.Gloss.Internals.Interface.Animate+Graphics.Gloss.Internals.Interface.Simulate'Graphics.Gloss.Internals.Interface.GameGraphics.GlossViewPortviewPortTranslateviewPortRotate viewPortScale BitmapDataQuadSESWNENWallQuadsPoint pointInBoxdegToRadradToDegnormaliseAngleVectormagVargVdotVdetVmulSVrotateVangleVV normaliseVunitVectorAtAngle segClearsBoxclosestPointOnLineclosestPointOnLineParamintersectLineLineintersectSegLineintersectSegHorzLineintersectSegVertLineintersectSegSegintersectSegHorzSegintersectSegVertSegCoordExtent makeExtent takeExtent squareExtent sizeOfExtent isUnitExtent coordInExtent pointInExtentcenterCoordOfExtentcutQuadOfExtent quadOfCoord pathToCoordintersectSegExtenttouchesSegExtentQuadTreeTNodeTLeafTNil emptyTree emptyNodetakeQuadOfTree liftToQuad insertByPath insertByCoordlookupNodeByPath lookupByPath lookupByCoordflattenQuadTreeflattenQuadTreeWithExtentsDisplay FullScreenInWindow Modifiersshiftctrlalt SpecialKey KeyPadEnter KeyPadEqual KeyPadDecimal KeyPadAddKeyPadSubtractKeyPadMultiply KeyPadDivideKeyPad9KeyPad8KeyPad7KeyPad6KeyPad5KeyPad4KeyPad3KeyPad2KeyPad1KeyPad0KeyEndKeyHome KeyPageDown KeyPageUp KeyDeleteKeyBegin KeyNumLock KeyInsert KeyBackspaceKeyEnterKeyTabKeyRightKeyLeftKeyDownKeyUpKeyF25KeyF24KeyF23KeyF22KeyF21KeyF20KeyF19KeyF18KeyF17KeyF16KeyF15KeyF14KeyF13KeyF12KeyF11KeyF10KeyF9KeyF8KeyF7KeyF6KeyF5KeyF4KeyF3KeyF2KeyF1KeyEscKeySpace KeyUnknownKeyStateUpDown MouseButtonAdditionalButton WheelDownWheelUp RightButton MiddleButton LeftButtonKeyCharColor makeColor makeColor' makeColor8 rgbaOfColorrawColor mixColors addColorsdimbrightlightdarkgreyNblackwhiteredgreenblueyellowcyanmagentarosevioletazure aquamarine chartreuseorangePicturePicturesScaleRotate TranslateBitmapTextThickArcArc ThickCircleCircleLinePolygonBlankPathblankpolygonlinecircle thickCirclearcthickArctextbitmapcolor translaterotatescalepicturesbitmapOfForeignPtrbitmapOfByteString bitmapOfBMPloadBMPlineLoop circleSolidarcSolid sectorWire rectanglePath rectangleWirerectangleUpperWirerectangleUpperPathrectangleSolidrectangleUpperSolidcastSegIntoCellularQuadTreetraceSegIntoCellularQuadTreedisplayanimate animateIOanimateFixedIOsimulate simulateIOEvent EventMotionEventKeyplayplayIOgfgsizeiStatestateIterationstateRun stateStep stateResetstateResolution stateSimTimestateStepsPerFrame stateInitdumpFramebufferStatedumpFragmentState stateAnimatestateAnimateCountstateAnimateStartstateAnimateTimestateDisplayTimestateDisplayTimeClampstateGateTimeStartstateGateTimeEndstateGateTimeElapsedstateDisplayTimeLast viewPortInit bitmapPath reverseRGBAfreeBitmapData$fShowBitmapData$fNum(,)baseGHC.Errerror Data.MaybeNothing renderCircle renderArcReshapeCallback IdleCallbackMotionCallbackKeyboardMouseCallbackDisplayCallbackBackendinitBackendStateinitializeBackend exitBackend openWindowdumpBackendStateinstallDisplayCallbackinstallWindowCloseCallbackinstallReshapeCallbackinstallKeyMouseCallbackinstallMotionCallbackinstallIdleCallback runMainLoop postRedisplaygetWindowDimensions elapsedTimesleepCallbackReshapeMotionIdleKeyMouse GLUTState$fBackendGLUTStatedefaultBackendState animateBegin animateEndCommanddefaultCommandConfigCBumpCClockwiseCBumpClockwise CBumpDownCBumpUp CBumpRight CBumpLeft CBumpZoomIn CBumpZoomOutCRotate CTranslateCRestore isCommand stateCommandsstateScaleStepstateRotateFactorstateTranslateMarkstateRotateMarkcallback_viewPort_keyMouse withViewPortcallback_simulate_idlecallback_viewPort_motioncallback_viewPort_reshape callback_exit $fNumColorglColor4OfColor createWindowghc-prim GHC.TypesFalseTrueGHC.ForeignPtr ForeignPtrbytestring-0.9.2.1Data.ByteString.Internal ByteString bmp-1.2.1.1Codec.BMP.BaseBMP$fMonoidPictureTexturetexNametexWidth texHeighttexData texObject texCacheMe stateColorstateWireframestateBlendAlphastateLineSmooth stateTextures renderPicturedisplayWithBackendanimateWithBackendIOsimulateWithBackendIOplayWithBackendIO